Fix for [#25175] bge.logic.mouse.position[1] wrong when using autostart
authorJoerg Mueller <nexyon@gmail.com>
Sun, 19 Dec 2010 13:56:02 +0000 (13:56 +0000)
committerJoerg Mueller <nexyon@gmail.com>
Sun, 19 Dec 2010 13:56:02 +0000 (13:56 +0000)
source/blender/windowmanager/intern/wm_init_exit.c

index d1fe841..25ca807 100644 (file)
@@ -281,6 +281,8 @@ int WM_init_game(bContext *C)
                        GHOST_RectangleHandle rect = GHOST_GetClientBounds(win->ghostwin);
                        ar->winrct.ymax = GHOST_GetHeightRectangle(rect);
                        ar->winrct.xmax = GHOST_GetWidthRectangle(rect);
+                       ar->winx = ar->winrct.xmax + 1;
+                       ar->winy = ar->winrct.ymax + 1;
                        GHOST_DisposeRectangle(rect);
                }