Skip to content

Commit

Permalink
UI: Fix typo
Browse files Browse the repository at this point in the history
Follow up on edf0dfc
  • Loading branch information
kai-li-wop committed Dec 1, 2024
1 parent b325620 commit 7c79faf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions code/ui/ui_display.c
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ static void UI_DisplayOptions_Event(void *ptr, int event) {
break;

case ID_BRIGHTNESS:
trap_Cvar_SetValue("r_gamma", (float)((int)displayOptionsInfo.brightness.curvalue) / 100.f);
trap_Cvar_SetValue("r_gamma", (float)((int)displayOptionsInfo.brightness.curvalue) / 100.0f);
break;

case ID_SCREENSIZE:
Expand Down Expand Up @@ -329,7 +329,7 @@ static void UI_DisplayOptions_Event(void *ptr, int event) {
}

trap_Cvar_SetValue("r_allowResize", displayOptionsInfo.resize.curvalue);
trap_Cvar_SetValue("r_greyscale", (float)((int)displayOptionsInfo.greyscale.curvalue) / 100.f);
trap_Cvar_SetValue("r_greyscale", (float)((int)displayOptionsInfo.greyscale.curvalue) / 100.0f);

UI_ForceMenuOff();
trap_Cmd_ExecuteText(EXEC_APPEND, "vid_restart\n");
Expand Down

0 comments on commit 7c79faf

Please sign in to comment.