main/newmenu.c: Fix for last rev1130 - store resolution and font-size in matching data type

This commit is contained in:
zicodxx 2010-06-23 13:39:52 +00:00
parent d79cc8bcbf
commit 16b0092af7
2 changed files with 3 additions and 2 deletions

View file

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

View file

@ -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;
};