diff --git a/CHANGELOG.txt b/CHANGELOG.txt index 7953e057b..a5cb08b58 100644 --- a/CHANGELOG.txt +++ b/CHANGELOG.txt @@ -4,6 +4,7 @@ D2X-Rebirth Changelog -------- main/menu.c, main/newmenu.c, main/newmenu.h, main/net_ipx.c: Making menus recreated on the fly in case resolution or font-size changes; Removing arguments to pass width and height to menu which was not used except on one IPX menu; Fixing measurement of menu strings of type NM_TYPE_INPUT_MENU; Fixing slight bug in freeing IPX netlist main/menu.c: If no player exists and GameCfg.LasterPlayer is unset, give user a nice default for convenience and - more important - let menu stop to nag about missing callsign and thereby showing the player creation dialogue over and over again +main/newmenu.c: Fix for last rev1130 - store resolution and font-size in matching data type 20100622 -------- diff --git a/main/newmenu.c b/main/newmenu.c index 564581c51..887d5bd66 100644 --- a/main/newmenu.c +++ b/main/newmenu.c @@ -75,7 +75,7 @@ struct newmenu { window *wind; int x,y,w,h; - int swidth, sheight, fntscalex, fntscaley; // with these we check if resolution or fonts have changed so menu structure can be recreated + short swidth, sheight; float fntscalex, fntscaley; // with these we check if resolution or fonts have changed so menu structure can be recreated char *title; char *subtitle; int nitems; @@ -1657,7 +1657,7 @@ struct listbox int (*listbox_callback)(listbox *lb, d_event *event, void *userdata); int citem, first_item; int box_w, height, box_x, box_y, title_height; - int swidth, sheight, fntscalex, fntscaley; // with these we check if resolution or fonts have changed so listbox structure can be recreated + short swidth, sheight; float fntscalex, fntscaley; // with these we check if resolution or fonts have changed so listbox structure can be recreated int mouse_state; void *userdata; };