Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDalai Felinto <dfelinto@gmail.com>2010-12-22 17:20:22 +0300
committerDalai Felinto <dfelinto@gmail.com>2010-12-22 17:20:22 +0300
commitc67dac4274586fc1ae0df4d0e8764bab9e660e6c (patch)
tree0756773f4ea7013e40754fb1f8b9c4c8c9fc3e3e /source/blender/windowmanager
parent3d58d17442aa6438d9a3ce80101c309272a181b5 (diff)
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.
Diffstat (limited to 'source/blender/windowmanager')
-rw-r--r--source/blender/windowmanager/intern/wm_init_exit.c2
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 25ca8076b39..181ae62af17 100644
--- a/source/blender/windowmanager/intern/wm_init_exit.c
+++ b/source/blender/windowmanager/intern/wm_init_exit.c
@@ -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
{