Fix build

This commit is contained in:
Chris Young 2013-05-18 16:55:37 +01:00
parent 2bce0185fe
commit ddbc8c7f63
1 changed files with 5 additions and 5 deletions

View File

@ -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,