Parcourir la source

Fixed the cursor clip rect when toggling window borders on macOS

Sam Lantinga il y a 6 mois
Parent
commit
ef23ebfb5a
1 fichiers modifiés avec 1 ajouts et 0 suppressions
  1. 1 0
      src/video/cocoa/SDL_cocoawindow.m

+ 1 - 0
src/video/cocoa/SDL_cocoawindow.m

@@ -2781,6 +2781,7 @@ void Cocoa_SetWindowBordered(SDL_VideoDevice *_this, SDL_Window *window, bool bo
         } else {
             data.border_toggled = true;
         }
+        Cocoa_UpdateClipCursor(window);
     }
 }