diff options
author | Bent Bisballe Nyeng <deva@aasimon.org> | 2015-11-07 10:39:46 +0100 |
---|---|---|
committer | Bent Bisballe Nyeng <deva@aasimon.org> | 2015-11-07 10:39:46 +0100 |
commit | a65ca7af57feaf7a4ea73f7e071a72eb9b3a1e24 (patch) | |
tree | 6cf9fa3b8b57513b8eae030bdc6e1a18495d7e75 /plugingui/window.cc | |
parent | 60109b8a737059058d2b0664c7ea88ec501490f7 (diff) |
Refactored Painter.
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) |