summaryrefslogtreecommitdiff
path: root/plugingui/window.cc
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2013-04-19 23:00:09 +0200
committerBent Bisballe Nyeng <deva@aasimon.org>2013-04-19 23:00:09 +0200
commitc5527bb9155086da8b5a7cea7d9450f265fb6f6a (patch)
tree87a63078c76d5658a86896e4d78d436d99fb18ae /plugingui/window.cc
parentbc4f25337e048db7d7ec86cfb116cc3768473ff5 (diff)
GUI position/size tweaks and some pixmap changes.
Diffstat (limited to 'plugingui/window.cc')
-rw-r--r--plugingui/window.cc8
1 files changed, 3 insertions, 5 deletions
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)