mirror of
https://github.com/ZDoom/Raze.git
synced 2025-06-02 10:11:04 +00:00
- merged in the changes RedNukem made to the Build code.
This commit is contained in:
parent
3a90d21661
commit
51dc82b6a6
7 changed files with 77 additions and 15 deletions
|
@ -719,7 +719,7 @@ void videoSetPalette(char dabrightness, uint8_t dapalid, uint8_t flags)
|
|||
}
|
||||
|
||||
videoSetGamma();
|
||||
j = !gammabrightness ? curbrightness : 0;
|
||||
j = (!gammabrightness || (flags&32) != 0) ? curbrightness : 0;
|
||||
|
||||
for (i=0; i<256; i++)
|
||||
{
|
||||
|
@ -736,6 +736,13 @@ void videoSetPalette(char dabrightness, uint8_t dapalid, uint8_t flags)
|
|||
curpalettefaded[i].f = 0;
|
||||
}
|
||||
|
||||
#ifdef USE_OPENGL
|
||||
if ((flags&32) != 0 && videoGetRenderMode() == REND_POLYMOST)
|
||||
r_brightnesshack = j;
|
||||
else
|
||||
r_brightnesshack = 0;
|
||||
#endif
|
||||
|
||||
if ((flags&16) && palfadedelta) // keep the fade
|
||||
paletteSetFade(palfadedelta>>2);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue