Fixed bug 3874 - Compiler warnings SDL_Surface.c and SDL_cocoakeyboard.m

This commit is contained in:
Sam Lantinga committed 2017-10-12 08:41:11 -07:00
1 parent a7c79c5e25
commit f4f9e39f62
2 files changed
+4 -4

No files matched your search

+1 -1
View File
@@ -939,7 +939,7 @@ SDLTest_CommonInit(SDLTest_CommonState * state)
}
/* Add resize/drag areas for windows that are borderless and resizable */
if ((state->window_flags & SDL_WINDOW_RESIZABLE|SDL_WINDOW_BORDERLESS) ==
if ((state->window_flags & (SDL_WINDOW_RESIZABLE|SDL_WINDOW_BORDERLESS)) ==
(SDL_WINDOW_RESIZABLE|SDL_WINDOW_BORDERLESS)) {
SDL_SetWindowHitTest(state->windows[i], SDLTest_ExampleHitTestCallback, NULL);
}