Skip to content

Commit

Permalink
Add gamma correction level setting to in-game options menu
Browse files Browse the repository at this point in the history
  • Loading branch information
jdgleaver committed Apr 27, 2018
1 parent 85161af commit 5b5e1ae
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/m_menu.c
Original file line number Diff line number Diff line change
Expand Up @@ -2766,6 +2766,7 @@ enum {
// general_pcx,
// general_diskicon,
general_uncapped,
general_gamma
};

enum {
Expand All @@ -2783,13 +2784,17 @@ enum {
#define GF_X 76

static const char *framerates[] = {"35fps", "40fps", "50fps", "60fps"};
static const char *gamma_lvls[] = {"OFF", "Lv. 1", "Lv. 2", "Lv. 3", "Lv. 4"};

setup_menu_t gen_settings1[] = { // General Settings screen1

{"Video" ,S_SKIP|S_TITLE, m_null, G_X, G_YA - 12},

{"Framerate", S_CHOICE, m_null, G_X,
G_YA + general_uncapped*8, {"uncapped_framerate"}, 0, 0, NULL, framerates},

{"Gamma Correction", S_CHOICE, m_null, G_X,
G_YA + general_gamma*8, {"usegamma"}, 0, 0, NULL, gamma_lvls},

#if 0
{"PCX instead of BMP for screenshots", S_YESNO, m_null, G_X,
Expand Down Expand Up @@ -5056,6 +5061,10 @@ void M_ClearMenus (void)
menuactive = mnact_inactive;
print_warning_about_changes = 0; // killough 8/15/98
default_verify = 0; // killough 10/98

// Have to call this here to ensure that any changes to the
// gamma correction level are applied immediately...
V_SetPalette(0);

// if (!netgame && usergame && paused)
// sendpause = TRUE;
Expand Down

0 comments on commit 5b5e1ae

Please sign in to comment.