summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorracarr <racarr>2007-01-29 02:04:58 +0000
committerracarr <racarr>2007-01-29 02:04:58 +0000
commita73dbe2162139d30503d0ac250a18edf68a36533 (patch)
tree1afac3cefb2e5de99febf80f270e12f02c268177
parent0ed6e06a3fb8345cb745c44c2f41227d92e3337c (diff)
downloadberyl-desktop-manager-a73dbe2162139d30503d0ac250a18edf68a36533.tar.gz
beryl-desktop-manager-a73dbe2162139d30503d0ac250a18edf68a36533.tar.bz2
Paint things a bit differently
-rw-r--r--src/bdm.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/bdm.c b/src/bdm.c
index acc2002..9e977c5 100644
--- a/src/bdm.c
+++ b/src/bdm.c
@@ -51,11 +51,12 @@ static void renderImage(cairo_t * cr, BDMImage * image, ScreenArea * area)
cairo_set_operator(cr,image->attrib->cairoOperator);
cairo_rotate(cr,image->attrib->xrot);
- cairo_rectangle(cr,widx+x,widy+y,widx+x+width,widy+y+height);
+ cairo_rectangle(cr,widx,widy,widx+width,widy+height);
cairo_move_to(cr,widx+x,widy+y);
cairo_clip(cr);
- gdk_cairo_set_source_pixbuf(cr,image->pixbuf,0,0);
+ cairo_scale(cr,.5,.5);
+ gdk_cairo_set_source_pixbuf(cr,image->pixbuf,x,y);
cairo_paint_with_alpha(cr,image->attrib->alpha);
cairo_restore(cr);