Sfoglia il codice sorgente

xbox: fix build

(cherry picked from commit 129c97f610d06cf0fd4583b2a8a96ac917500bb1)
Aleksey Melekh 6 mesi fa
parent
commit
e755f50072
1 ha cambiato i file con 2 aggiunte e 0 eliminazioni
  1. 2 0
      src/video/windows/SDL_windowswindow.c

+ 2 - 0
src/video/windows/SDL_windowswindow.c

@@ -747,8 +747,10 @@ bool WIN_CreateWindow(SDL_VideoDevice *_this, SDL_Window *window, SDL_Properties
             return false;
             return false;
         }
         }
 
 
+#if !defined(SDL_PLATFORM_XBOXONE) && !defined(SDL_PLATFORM_XBOXSERIES)
         // Ensure that the IME isn't active on the new window until explicitly requested.
         // Ensure that the IME isn't active on the new window until explicitly requested.
         WIN_StopTextInput(_this, window);
         WIN_StopTextInput(_this, window);
+#endif
 
 
         // Inform Windows of the frame change so we can respond to WM_NCCALCSIZE
         // Inform Windows of the frame change so we can respond to WM_NCCALCSIZE
         SetWindowPos(hwnd, NULL, 0, 0, 0, 0, SWP_FRAMECHANGED | SWP_NOSIZE | SWP_NOMOVE | SWP_NOZORDER | SWP_NOOWNERZORDER | SWP_NOACTIVATE);
         SetWindowPos(hwnd, NULL, 0, 0, 0, 0, SWP_FRAMECHANGED | SWP_NOSIZE | SWP_NOMOVE | SWP_NOZORDER | SWP_NOOWNERZORDER | SWP_NOACTIVATE);