From: havoc Date: Fri, 24 Aug 2007 02:31:35 +0000 (+0000) Subject: added gl_texturecompression to the video options menu X-Git-Tag: xonotic-v0.1.0preview~2941 X-Git-Url: http://de.git.xonotic.org/?a=commitdiff_plain;h=12ca8e9cda940140f95445aa8967e214fee87714;p=xonotic%2Fdarkplaces.git added gl_texturecompression to the video options menu git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@7533 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/menu.c b/menu.c index 618bda8d..cbe1b0b6 100644 --- a/menu.c +++ b/menu.c @@ -2821,9 +2821,9 @@ video_resolution_t video_resolutions[] = #define VID_DEFAULT 3 #define VID_RES_COUNT ((int)(sizeof(video_resolutions) / sizeof(video_resolutions[0])) - 1) -#define VIDEO_ITEMS 9 +#define VIDEO_ITEMS 10 static int video_cursor = 0; -static int video_cursor_table[] = {56, 68, 88, 100, 112, 132, 162, 174, 186}; +static int video_cursor_table[] = {56, 68, 88, 100, 112, 132, 162, 170, 178, 186}; static int video_resolution; void M_Menu_Video_f (void) @@ -2915,6 +2915,9 @@ static void M_Video_Draw (void) M_ItemPrint(16, video_cursor_table[8], " Texture Quality", true); M_DrawSlider(220, video_cursor_table[8], gl_picmip.value, 3, 0); + M_ItemPrint(16, video_cursor_table[9], " Texture Compression", gl_support_texture_compression); + M_DrawCheckbox(220, video_cursor_table[9], gl_texturecompression.integer); + // Cursor M_DrawCharacter(200, video_cursor_table[video_cursor], 12+((int)(realtime*4)&1)); } @@ -2964,6 +2967,9 @@ static void M_Menu_Video_AdjustSliders (int dir) case 8: Cvar_SetValueQuick (&gl_picmip, bound(0, gl_picmip.value - dir, 3)); break; + case 9: + Cvar_SetValueQuick (&gl_texturecompression, !gl_texturecompression.integer); + break; } }