Fix for [#25175] bge.logic.mouse.position[1] wrong when using autostart

This commit is contained in:
Joerg Mueller
2010-12-19 13:56:02 +00:00
parent 686420b15d
commit 9685589cf7

View 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);
}