// in the end leads calls one of the four functions above void Menu_Demo_Draw (void) { extern void Demo_Draw(int, int, int, int); int x, y, w, h; #ifdef GLQUAKE // do not scale this menu if (scr_scaleMenu.value) { menuwidth = vid.width; menuheight = vid.height; glMatrixMode(GL_PROJECTION); glLoadIdentity (); glOrtho (0, menuwidth, menuheight, 0, -99999, 99999); } #endif // don't add padding on the right side so the scrolling is friendly w = vid.width - DEMOPAGEPADDING; // here used to be a limit to 512x... size, we've considered it useless h = vid.height - DEMOPAGEPADDING*2; x = DEMOPAGEPADDING; y = DEMOPAGEPADDING; CTab_Draw(&demo_tab, x, y, w, h); }
void Menu_Options_Draw(void) { int x, y, w, h; M_Unscale_Menu(); // this will add top, left and bottom padding // right padding is not added because it causes annoying scrollbar behaviour // when mouse gets off the scrollbar to the right side of it w = vid.width - OPTPADDING; // here used to be a limit to 512x... size h = vid.height - OPTPADDING*2; x = OPTPADDING; y = OPTPADDING; CTab_Draw(&options_tab, x, y, w, h); }
// in the end leads calls one of the four functions above void Menu_Demo_Draw (void) { extern void Demo_Draw(int, int, int, int); int x, y, w, h; M_Unscale_Menu(); // don't add padding on the right side so the scrolling is friendly w = vid.width - DEMOPAGEPADDING; // here used to be a limit to 512x... size, we've considered it useless h = vid.height - DEMOPAGEPADDING*2; x = DEMOPAGEPADDING; y = DEMOPAGEPADDING; CTab_Draw(&demo_tab, x, y, w, h); }
void Menu_MultiPlayer_Draw (void) { int x, y, w, h; M_Unscale_Menu(); w = min(640, vid.width) - BROWSERPADDING*2; h = min(480, vid.height) - BROWSERPADDING*2; x = (vid.width - w) / 2; y = (vid.height - h) / 2; Browser_window.x = x; Browser_window.y = y; Browser_window.w = w; Browser_window.h = h; CTab_Draw(&sb_tab, x, y, w, h); SB_Specials_Draw(); }
void Menu_Options_Draw(void) { int x, y, w, h; #ifdef GLQUAKE // do not scale this menu if (scr_scaleMenu.value) { menuwidth = vid.width; menuheight = vid.height; glMatrixMode(GL_PROJECTION); glLoadIdentity (); glOrtho (0, menuwidth, menuheight, 0, -99999, 99999); } #endif // this will add top, left and bottom padding // right padding is not added because it causes annoying scrollbar behaviour // when mouse gets off the scrollbar to the right side of it w = vid.width - OPTPADDING; // here used to be a limit to 512x... size h = vid.height - OPTPADDING*2; x = OPTPADDING; y = OPTPADDING; CTab_Draw(&options_tab, x, y, w, h); }