Fix for [#25175] bge.logic.mouse.position[1] wrong when using autostart
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user