浏览代码

Fixed typo

Sam Lantinga 3 年之前
父节点
当前提交
074e613bbb
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/video/cocoa/SDL_cocoawindow.m

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

@@ -423,7 +423,7 @@ Cocoa_UpdateClipCursor(SDL_Window * window)
             rect.origin.y = [nswindow contentLayoutRect].size.height - mouse_rect.y - mouse_rect.h;
             rect.size.width = mouse_rect.w;
             rect.size.height = mouse_rect.h;
-            data->nswindow.mouseConfinementRect = rect;
+            nswindow.mouseConfinementRect = rect;
         }
     } else {
         /* Move the cursor to the nearest point in the window */