Skip to content

Commit

Permalink
Fix previous commit
Browse files Browse the repository at this point in the history
  • Loading branch information
bradharding committed Oct 8, 2023
1 parent 4def01e commit 74d666f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/i_video.c
Original file line number Diff line number Diff line change
Expand Up @@ -1321,7 +1321,7 @@ static void SetVideoMode(const bool createwindow, const bool output)
(english == english_american ? "initialized" : "initialised"));

if (createwindow)
if ((window = SDL_CreateWindow(DOOMRETRO_NAME, SDL_WINDOWPOS_UNDEFINED_DISPLAY(displayindex),
if (!(window = SDL_CreateWindow(DOOMRETRO_NAME, SDL_WINDOWPOS_UNDEFINED_DISPLAY(displayindex),
SDL_WINDOWPOS_UNDEFINED_DISPLAY(displayindex), width, height,
(windowflags | (vid_borderlesswindow ? SDL_WINDOW_FULLSCREEN_DESKTOP : SDL_WINDOW_FULLSCREEN)))))
I_SDLError("SDL_CreateWindow", -3);
Expand Down

0 comments on commit 74d666f

Please sign in to comment.