Ver código fonte

fix emscripten builds

(cherry picked from commit ab8bd0ef8699d968205e2528a515134af757b801)
Ozkan Sezer 1 ano atrás
pai
commit
63521cb9a7
1 arquivos alterados com 4 adições e 4 exclusões
  1. 4 4
      src/video/emscripten/SDL_emscriptenevents.c

+ 4 - 4
src/video/emscripten/SDL_emscriptenevents.c

@@ -794,15 +794,15 @@ static EM_BOOL Emscripten_HandleTouch(int eventType, const EmscriptenTouchEvent
     return preventDefault;
     return preventDefault;
 }
 }
 
 
-static bool IsFunctionKey(SDL_Scancode scancode)
+static SDL_bool IsFunctionKey(SDL_Scancode scancode)
 {
 {
     if (scancode >= SDL_SCANCODE_F1 && scancode <= SDL_SCANCODE_F12) {
     if (scancode >= SDL_SCANCODE_F1 && scancode <= SDL_SCANCODE_F12) {
-        return true;
+        return SDL_TRUE;
     }
     }
     if (scancode >= SDL_SCANCODE_F13 && scancode <= SDL_SCANCODE_F24) {
     if (scancode >= SDL_SCANCODE_F13 && scancode <= SDL_SCANCODE_F24) {
-        return true;
+        return SDL_TRUE;
     }
     }
-    return false;
+    return SDL_FALSE;
 }
 }
 
 
 /* This is a great tool to see web keyboard events live:
 /* This is a great tool to see web keyboard events live: