diff options
author | Joerg Mueller <nexyon@gmail.com> | 2010-12-19 16:56:02 +0300 |
---|---|---|
committer | Joerg Mueller <nexyon@gmail.com> | 2010-12-19 16:56:02 +0300 |
commit | 9685589cf713efee5223264b9ff640a68fee0340 (patch) | |
tree | 87149c62a9c4dc1d9e837dfd66a6123d71696325 /source/blender/windowmanager | |
parent | 686420b15d2f4feda760bd19c93394df71ddfb1d (diff) |
Fix for [#25175] bge.logic.mouse.position[1] wrong when using autostart
Diffstat (limited to 'source/blender/windowmanager')
-rw-r--r-- | source/blender/windowmanager/intern/wm_init_exit.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/windowmanager/intern/wm_init_exit.c b/source/blender/windowmanager/intern/wm_init_exit.c index d1fe841d467..25ca8076b39 100644 --- a/source/blender/windowmanager/intern/wm_init_exit.c +++ b/source/blender/windowmanager/intern/wm_init_exit.c @@ -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); } |