X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fgraphics%2Fwindow.cpp;h=658eb26f5aab722c2b1515a4c64c4f6f9334ec73;hb=e5dd55567618c0a0789d25882d2e0eab69437d63;hp=00acbc459446a6d410d12d876f4bb7662f4265f0;hpb=eba34251cee51134bba7644a84da49583da599f7;p=libs%2Fgui.git diff --git a/source/graphics/window.cpp b/source/graphics/window.cpp index 00acbc4..658eb26 100644 --- a/source/graphics/window.cpp +++ b/source/graphics/window.cpp @@ -51,7 +51,7 @@ Window::~Window() display.remove_window(*this); - if(options.fullscreen) + if(options.fullscreen && visible) display.restore_mode(); delete priv; @@ -60,7 +60,8 @@ Window::~Window() void Window::reconfigure(const WindowOptions &opts) { bool fullscreen_changed = (opts.fullscreen!=options.fullscreen); - resizing = (opts.width!=options.width || opts.height!=options.height); + if(opts.width!=options.width || opts.height!=options.height) + resizing = true; if(visible) {