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:
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user