From: havoc Date: Mon, 28 Nov 2005 00:59:01 +0000 (+0000) Subject: added scr_screenshot_gamma to menu (I'm sure I did this once before!) X-Git-Tag: xonotic-v0.1.0preview~4441 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=fc886115cc50bef7c50f83cf05baea51e82fd869;p=xonotic%2Fdarkplaces.git added scr_screenshot_gamma to menu (I'm sure I did this once before!) git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5844 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/menu.c b/menu.c index 9074fd1c..bc04a76d 100644 --- a/menu.c +++ b/menu.c @@ -1506,7 +1506,7 @@ void M_DrawCheckbox (int x, int y, int on) } -#define OPTIONS_ITEMS 39 +#define OPTIONS_ITEMS 40 int options_cursor; @@ -1550,6 +1550,8 @@ void M_Menu_Options_AdjustSliders (int dir) Cvar_SetValueQuick (&scr_screenshot_jpeg, !scr_screenshot_jpeg.integer); else if (options_cursor == optnum++) Cvar_SetValueQuick (&scr_screenshot_jpeg_quality, bound(0, scr_screenshot_jpeg_quality.value + dir * 0.1, 1)); + else if (options_cursor == optnum++) + Cvar_SetValueQuick (&scr_screenshot_gamma, bound(0.1, scr_screenshot_gamma.value + dir * 0.1, 4); else if (options_cursor == optnum++) Cvar_SetValueQuick (&r_sky, !r_sky.integer); else if (options_cursor == optnum++) @@ -1678,6 +1680,7 @@ void M_Options_Draw (void) M_Options_PrintSlider( " Field of View", true, scr_fov.integer, 1, 170); M_Options_PrintCheckbox(" JPEG screenshots", jpeg_dll != NULL, scr_screenshot_jpeg.integer); M_Options_PrintSlider( " JPEG quality", jpeg_dll != NULL, scr_screenshot_jpeg_quality.value, 0, 1); + M_Options_PrintSlider( " Screenshot Gamma", jpeg_dll != NULL, scr_screenshot_gamma.value, 0.1, 4); M_Options_PrintCheckbox(" Sky", true, r_sky.integer); M_Options_PrintCheckbox(" Dithering", true, gl_dither.integer); M_Options_PrintSlider( "Anisotropic Filter", gl_support_anisotropy, gl_texture_anisotropy.integer, 1, gl_max_anisotropy);