X-Git-Url: http://git.tdb.fi/?p=libs%2Fgui.git;a=blobdiff_plain;f=source%2Fgraphics%2Fwindow.cpp;h=958667ead5698165d18508a7685f7ea1eebcfa9f;hp=073cd8d5c819311277bfeb6e0ff0444521a4eeb9;hb=a8a9191481151f049781b670ea8883025a594a5f;hpb=2deed84c84e513ee1c2a2fbbcd3946c1d772fcbb diff --git a/source/graphics/window.cpp b/source/graphics/window.cpp index 073cd8d..958667e 100644 --- a/source/graphics/window.cpp +++ b/source/graphics/window.cpp @@ -91,7 +91,7 @@ void Window::reconfigure(const WindowOptions &opts) void Window::set_fullscreen_mode() { VideoMode mode(options.width, options.height); - mode.rotation = display.get_desktop_mode().monitor->desktop_rotation; + mode.rotation = display.get_desktop_mode().monitor->desktop_settings.rotation; if(mode.rotation==ROTATE_LEFT || mode.rotation==ROTATE_RIGHT) swap(mode.width, mode.height); display.set_mode(mode, true);