summaryrefslogtreecommitdiff
path: root/plugingui/window.cc
diff options
context:
space:
mode:
Diffstat (limited to 'plugingui/window.cc')
-rw-r--r--plugingui/window.cc11
1 files changed, 9 insertions, 2 deletions
diff --git a/plugingui/window.cc b/plugingui/window.cc
index 0d11b17..41d4d82 100644
--- a/plugingui/window.cc
+++ b/plugingui/window.cc
@@ -92,16 +92,23 @@ void GUI::Window::repaintEvent(GUI::RepaintEvent *e)
height() - logo.height(), &logo);
}
+void GUI::Window::setFixedSize(int w, int h)
+{
+ native->setFixedSize(w, h);
+ resize(w,h);
+}
+
void GUI::Window::resize(int width, int height)
{
if(width < 1 || height < 1) return;
-#ifdef WIN32
+ // This needs to be done on all platoforms when setFixedSize is introduced.
+ //#ifdef WIN32
// Fix to force buffer size reallocation
// FIXME: This should've been done indirectly through a WM_SIZE message in the
// EventHandler...
resized(width, height);
-#endif
+ //#endif
native->resize(width, height);
Widget::resize(width, height);