From 50f7827f48cd8b16415667d040486d40bf6778cb Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Sun, 9 Apr 2017 11:13:39 +0200 Subject: Fix missing redraw after initialisation on Win32. --- plugingui/window.cc | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'plugingui/window.cc') 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 -- cgit v1.2.3