From b9d4ec244f8a2e519b390f5ba7bb79f4d97788f3 Mon Sep 17 00:00:00 2001 From: Steven Date: Thu, 29 Jul 2010 01:52:04 +0000 Subject: [PATCH] Link the status bar size to the scale slider, though it's size only increases half as fast git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@246 af15c1b1-3010-417e-b628-4374ebc0bcbd --- Quake/menu.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Quake/menu.c b/Quake/menu.c index 52c31f0a..0ce03b4b 100644 --- a/Quake/menu.c +++ b/Quake/menu.c @@ -1053,12 +1053,16 @@ void M_AdjustSliders (int dir) switch (options_cursor) { case 3: // console and menu scale - scr_scale.value += dir * .2; + scr_scale.value += dir * .1; // or .2 if (scr_scale.value < 1) scr_scale.value = 1; else if (scr_scale.value > 6) scr_scale.value = 6; Cvar_SetValue ("scr_scale", scr_scale.value); + + // status bar size increases half as fast + Cvar_SetValue ("scr_sbarscale", (scr_scale.value - 1)/2 + 1); + Cvar_SetValue ("scr_conscale", scr_scale.value); Cvar_SetValue ("scr_menuscale", scr_scale.value); break;