Skip to content

Commit

Permalink
Fix C4554
Browse files Browse the repository at this point in the history
This is a correctly identified operator precedence bug, and due to changes in defaults, prevents SDL from working on PC
  • Loading branch information
nspitko committed Apr 19, 2024
1 parent f463d71 commit 9c96680
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libs/sdl/sdl.c
Original file line number Diff line number Diff line change
Expand Up @@ -521,11 +521,11 @@ DEFINE_PRIM(_BOOL, hint_value, _BYTES _BYTES);

HL_PRIM SDL_Window *HL_NAME(win_create_ex)(int x, int y, int width, int height, int sdlFlags) {
// force window to match device resolution on mobile
if (sdlFlags & (
if ((sdlFlags & (
#ifdef HL_MAC
SDL_WINDOW_METAL |
#endif
SDL_WINDOW_VULKAN ) == 0) {
SDL_WINDOW_VULKAN )) == 0) {
sdlFlags |= SDL_WINDOW_OPENGL;
}

Expand Down

0 comments on commit 9c96680

Please sign in to comment.