diff options
author | Bent Bisballe Nyeng <deva@aasimon.org> | 2013-10-19 11:20:12 +0200 |
---|---|---|
committer | Bent Bisballe Nyeng <deva@aasimon.org> | 2013-10-19 11:20:12 +0200 |
commit | c4f69d2af7d995eb0dd4592c18dc2f6b930bd193 (patch) | |
tree | 05118efa264bb2623719cfa1d579ca1ed1cf1980 /plugingui/window.cc | |
parent | ae63d465c7252602500c4de5aa2d2a99df852bfb (diff) |
Make window fixed size.
Diffstat (limited to 'plugingui/window.cc')
-rw-r--r-- | plugingui/window.cc | 11 |
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); |