Complement of commit 33789: Fix for [#25175] bge.logic.mouse.position[1] wrong when using autostart

Porting the fix when Fullscreen flag is on (~ scene.gm->fullscreen)
I still see some issues with that, a difference between width/height. To be addressed later.
This commit is contained in:
Dalai Felinto
2010-12-22 14:20:22 +00:00
parent 3d58d17442
commit c67dac4274

View File

@@ -275,6 +275,8 @@ int WM_init_game(bContext *C)
if(scene->gm.fullscreen) {
WM_operator_name_call(C, "WM_OT_window_fullscreen_toggle", WM_OP_EXEC_DEFAULT, NULL);
wm_get_screensize(&ar->winrct.xmax, &ar->winrct.ymax);
ar->winx = ar->winrct.xmax + 1;
ar->winy = ar->winrct.ymax + 1;
}
else
{