diff options
author | Dalai Felinto <dfelinto@gmail.com> | 2015-04-08 07:59:24 +0300 |
---|---|---|
committer | Dalai Felinto <dfelinto@gmail.com> | 2015-04-08 08:02:59 +0300 |
commit | 796b17b8439eb883c892dbc3896a2d8a62af2b43 (patch) | |
tree | 183763f198daeb4c95526d256a3e324888fba726 /source | |
parent | f5648f6db9f4549d9e3220f89361e5f76e5b2b2a (diff) |
Multiview: Fullscreen modes (sidebyside/topbottom) were not working
* WM_window_is_fullscreen() is not the correct test.
* Also, we no longer change window to fullscreen automatically.
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/windowmanager/intern/wm_stereo.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/source/blender/windowmanager/intern/wm_stereo.c b/source/blender/windowmanager/intern/wm_stereo.c index 44d0e81e93c..9e9a9739cc0 100644 --- a/source/blender/windowmanager/intern/wm_stereo.c +++ b/source/blender/windowmanager/intern/wm_stereo.c @@ -365,8 +365,9 @@ bool WM_stereo3d_enabled(wmWindow *win, bool skip_stereo3d_check) if ((skip_stereo3d_check == false) && (ED_screen_stereo3d_required(screen) == false)) return false; - if (wm_stereo3d_is_fullscreen_required(win->stereo3d_format->display_mode)) - return WM_window_is_fullscreen(win); + if (wm_stereo3d_is_fullscreen_required(win->stereo3d_format->display_mode)) { + return (GHOST_GetWindowState(win->ghostwin) == GHOST_kWindowStateFullScreen); + } return true; } @@ -457,7 +458,7 @@ int wm_stereo3d_set_exec(bContext *C, wmOperator *op) if (wm_stereo3d_is_fullscreen_required(win->stereo3d_format->display_mode)) { if (!is_fullscreen) { - wm_window_fullscreen_toggle_exec(C, op); + BKE_reportf(op->reports, RPT_INFO, "Stereo 3D Mode requires the window to be fullscreen"); } } |