From c5527bb9155086da8b5a7cea7d9450f265fb6f6a Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Fri, 19 Apr 2013 23:00:09 +0200 Subject: GUI position/size tweaks and some pixmap changes. --- plugingui/window.cc | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'plugingui/window.cc') diff --git a/plugingui/window.cc b/plugingui/window.cc index 7dabb4c..2426d9e 100644 --- a/plugingui/window.cc +++ b/plugingui/window.cc @@ -44,7 +44,7 @@ GUI::Window *gwindow = NULL; GUI::Window::Window(GlobalContext *gctx) - : Widget(NULL), wpixbuf(1000, 1000) + : Widget(NULL), wpixbuf(1000, 1000), back(":bg.png"), logo(":logo.png") { gwindow = this; @@ -81,11 +81,9 @@ void GUI::Window::setCaption(std::string caption) void GUI::Window::repaintEvent(GUI::RepaintEvent *e) { Painter p(this); - - p.clear(); - - Image back(":bg.png"); p.drawImageStretched(0,0, &back, width(), height()); + p.drawImage(width() - logo.width(), + height() - logo.height(), &logo); } void GUI::Window::resize(int width, int height) -- cgit v1.2.3