X-Git-Url: http://git.tdb.fi/?p=libs%2Fgui.git;a=blobdiff_plain;f=source%2Fgraphics%2Fwindows%2Fwindow.cpp;h=68baea71ed2d9c91a05d99ef42fd1fe844e3a8c8;hp=2d4d75bead21b6a3f5b6e8208c454379479adcad;hb=05db7bfc90b3a3806080f34e463c57b9b3d87d31;hpb=d163b3628fee61ea4acad0e9429aab904b03bf70 diff --git a/source/graphics/windows/window.cpp b/source/graphics/windows/window.cpp index 2d4d75b..68baea7 100644 --- a/source/graphics/windows/window.cpp +++ b/source/graphics/windows/window.cpp @@ -183,6 +183,15 @@ bool Window::event(const Event &evnt) case WM_CLOSE: signal_close.emit(); break; + case WM_PAINT: + { + RECT update_rect; + GetUpdateRect(priv->window, &update_rect, false); + unsigned width = update_rect.right-update_rect.left; + unsigned height = update_rect.bottom-update_rect.top; + signal_expose.emit(update_rect.left, update_rect.top, width, height, evnt); + } + break; default: return false; }