Fix build
This commit is contained in:
parent
2bce0185fe
commit
ddbc8c7f63
10
amiga/menu.c
10
amiga/menu.c
|
@ -159,15 +159,15 @@ static void ami_menu_alloc_item(struct gui_window_2 *gwin, int num, UBYTE type,
|
|||
}
|
||||
}
|
||||
|
||||
if((GadToolsBase->LibNode.lib_Version > 53) ||
|
||||
((GadToolsBase->LibNode.lib_Version == 53) && (GadToolsBase->LibNode.lib_Revision >= 5)) {
|
||||
if((GadToolsBase->lib_Version > 53) ||
|
||||
((GadToolsBase->lib_Version == 53) && (GadToolsBase->lib_Revision >= 5))) {
|
||||
/* GadTools 53.5+ only. For now we will only create the menu
|
||||
using label.image if there's a bitmap associated with the item. */
|
||||
if(bitmap != NULL) {
|
||||
if(bm != NULL) {
|
||||
struct DrawInfo *dri = GetScreenDrawInfo(scrn);
|
||||
struct BitMap *menu_icon = ami_bitmap_get_native(bitmap, 16, 16, NULL);
|
||||
struct BitMap *menu_icon = ami_bitmap_get_native(bm, 16, 16, NULL);
|
||||
|
||||
gwin->menuobj[n] = LabelObject,
|
||||
gwin->menuobj[num] = LabelObject,
|
||||
LABEL_DrawInfo, dri,
|
||||
LABEL_DisposeImage, TRUE,
|
||||
LABEL_Image, BitMapObject,
|
||||
|
|
Loading…
Reference in New Issue