mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-11-10 23:02:03 +00:00
git-svn-id: https://svn.eduke32.com/eduke32@973 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
4ce41d5079
commit
c9b1da3653
3 changed files with 15 additions and 2 deletions
|
@ -425,9 +425,13 @@ int app_main(int argc, const char **argv)
|
|||
|
||||
if (cursectnum == -1)
|
||||
{
|
||||
double gamma = vid_gamma;
|
||||
vid_gamma = 1.0;
|
||||
setbrightness(0,palette,0);
|
||||
overheadeditor();
|
||||
keystatus[buildkeys[BK_MODE2D_3D]] = 0;
|
||||
vid_gamma = gamma;
|
||||
setbrightness(brightness,palette,0);
|
||||
}
|
||||
CANCEL:
|
||||
quitflag = 0;
|
||||
|
@ -2580,9 +2584,13 @@ void editinput(void)
|
|||
}
|
||||
if (keystatus[buildkeys[BK_MODE2D_3D]]) // Enter
|
||||
{
|
||||
double gamma = vid_gamma;
|
||||
vid_gamma = 1.0;
|
||||
setbrightness(0,palette,0);
|
||||
overheadeditor();
|
||||
keystatus[buildkeys[BK_MODE2D_3D]] = 0;
|
||||
vid_gamma = gamma;
|
||||
setbrightness(brightness,palette,0);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -133,7 +133,11 @@ int loadsetup(const char *fn)
|
|||
if (readconfig(fp, "bpp", val, VL) > 0) bppgame = Batoi(val);
|
||||
if (readconfig(fp, "editorgridextent", val, VL) > 0) editorgridextent = max(min(524288,Batoi(val)),65536);
|
||||
if (readconfig(fp, "renderer", val, VL) > 0) { i = Batoi(val); setrendermode(i); }
|
||||
if (readconfig(fp, "brightness", val, VL) > 0) brightness = min(max(Batoi(val),0),15);
|
||||
if (readconfig(fp, "brightness", val, VL) > 0)
|
||||
{
|
||||
brightness = min(max(Batoi(val),0),15);
|
||||
vid_gamma = 1.0 + ((float)brightness / 10.0);
|
||||
}
|
||||
|
||||
#ifdef RENDERTYPEWIN
|
||||
if (readconfig(fp, "maxrefreshfreq", val, VL) > 0) maxrefreshfreq = Batoi(val);
|
||||
|
|
|
@ -5396,8 +5396,9 @@ static void Keys3d(void)
|
|||
keystatus[KEYSC_F11] = 0;
|
||||
brightness++;
|
||||
if (brightness >= 16) brightness = 0;
|
||||
vid_gamma = 1.0 + ((float)brightness / 10.0);
|
||||
setbrightness(brightness,palette,0);
|
||||
message("Brightness: %d/16",brightness);
|
||||
message("Brightness: %d/16",brightness+1);
|
||||
}
|
||||
|
||||
if (keystatus[KEYSC_TAB]) //TAB
|
||||
|
|
Loading…
Reference in a new issue