소스 검색

Fix C4554 (#678)

Spitko 1 년 전
부모
커밋
e65f116a78
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      libs/sdl/sdl.c

+ 2 - 2
libs/sdl/sdl.c

@@ -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;
 	}