Jelajahi Sumber

Fixed Linux build

Sam Lantinga 4 tahun lalu
induk
melakukan
18e69827aa
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      src/video/x11/SDL_x11xfixes.c

+ 1 - 1
src/video/x11/SDL_x11xfixes.c

@@ -76,7 +76,7 @@ X11_XfixesIsInitialized()
 void
 X11_SetWindowMouseRect(_THIS, SDL_Window * window)
 {
-    if (SDL_RectEmpty(window->mouse_rect)) {
+    if (SDL_RectEmpty(&window->mouse_rect)) {
         X11_ConfineCursorWithFlags(_this, window, NULL, 0);
     } else {
         if (window->flags & SDL_WINDOW_INPUT_FOCUS) {