diff options
Diffstat (limited to 'plugingui/window.cc')
-rw-r--r-- | plugingui/window.cc | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/plugingui/window.cc b/plugingui/window.cc index b9a1092..afbcb21 100644 --- a/plugingui/window.cc +++ b/plugingui/window.cc @@ -69,7 +69,7 @@ GUI::Window::Window() native = new NativeWindowPugl(this); #endif - eventhandler = new GUI::EventHandler(native, this); + eventhandler = new GUI::EventHandler(*native, *this); } GUI::Window::~Window() @@ -92,10 +92,9 @@ void GUI::Window::repaintEvent(GUI::RepaintEvent *e) { if(!visible()) return; - Painter p(this); - p.drawImageStretched(0,0, &back, width(), height()); - p.drawImage(width() - logo.width(), - height() - logo.height(), &logo); + Painter p(*this); + p.drawImageStretched(0,0, back, width(), height()); + p.drawImage(width() - logo.width(), height() - logo.height(), logo); } void GUI::Window::setFixedSize(int w, int h) |