Skip to content

Commit

Permalink
Fix alt-tab wrong palette
Browse files Browse the repository at this point in the history
  • Loading branch information
kraflab committed Oct 1, 2023
1 parent bf7c9c3 commit e89362b
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions prboom2/src/SDL/i_video.c
Original file line number Diff line number Diff line change
Expand Up @@ -1561,11 +1561,7 @@ static void UpdateFocus(void)
// after switching to OS and back
if (desired_fullscreen && window_focused)
{
// currentPaletteIndex?
if (st_palette < 0)
st_palette = 0;

V_SetPalette(st_palette);
V_TouchPalette();
}

// Should the screen be grabbed?
Expand Down

0 comments on commit e89362b

Please sign in to comment.