summaryrefslogtreecommitdiff
path: root/plugingui/window.cc
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2017-04-09 11:13:39 +0200
committerBent Bisballe Nyeng <deva@aasimon.org>2017-04-11 21:38:40 +0200
commit50f7827f48cd8b16415667d040486d40bf6778cb (patch)
tree907fbb79dd8c03e4b0c986c85487a7c073eb0fca /plugingui/window.cc
parent8060a2de98c31ed8bf76cb2db1e8983ef38488bb (diff)
Fix missing redraw after initialisation on Win32.
Diffstat (limited to 'plugingui/window.cc')
-rw-r--r--plugingui/window.cc12
1 files changed, 6 insertions, 6 deletions
diff --git a/plugingui/window.cc b/plugingui/window.cc
index 66b7337..2d5f282 100644
--- a/plugingui/window.cc
+++ b/plugingui/window.cc
@@ -201,14 +201,14 @@ std::size_t Window::translateToWindowY()
void Window::resized(std::size_t width, std::size_t height)
{
auto size = native->getSize();
- if((wpixbuf.width == size.first) &&
- (wpixbuf.height == size.second))
+ if((wpixbuf.width != size.first) ||
+ (wpixbuf.height != size.second))
{
- return;
+ wpixbuf.realloc(size.first, size.second);
+ Widget::resize(size.first, size.second);
}
- wpixbuf.realloc(size.first, size.second);
- Widget::resize(size.first, size.second);
- //updateBuffer();
+
+ updateBuffer();
}
//! Called by event handler when an windowmanager/OS window move event has