summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorracarr <racarr>2007-01-29 01:58:54 +0000
committerracarr <racarr>2007-01-29 01:58:54 +0000
commitce6374b844f5623a0c529e4d2d9bd1049d16c920 (patch)
treebb0a727f50273d787dfaa275c7f97791c35652fe
parent1df92d80aa616c2a89e6077e4944acd254fa9e42 (diff)
downloadberyl-desktop-manager-ce6374b844f5623a0c529e4d2d9bd1049d16c920.tar.gz
beryl-desktop-manager-ce6374b844f5623a0c529e4d2d9bd1049d16c920.tar.bz2
Tired of writing commit logs
-rw-r--r--src/bdm.c4
-rw-r--r--src/testWidget.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/src/bdm.c b/src/bdm.c
index 8941592..cbc7df2 100644
--- a/src/bdm.c
+++ b/src/bdm.c
@@ -52,11 +52,11 @@ static void renderImage(cairo_t * cr, BDMImage * image, ScreenArea * area)
int height = image->pixH;
cairo_set_operator(cr,image->attrib->cairoOperator);
cairo_rotate(cr,image->attrib->xrot);
- //cairo_scale(cr,(float)image->attrib->width/(float)image->pixW,image->attrib->height/(float)image->pixH);
cairo_rectangle(cr,widx+x,widy+y,widx+x+width,widy+y+height);
cairo_move_to(cr,widx+x,widy+y);
- cairo_clip(cr);
+ cairo_clip(cr);
+
gdk_cairo_set_source_pixbuf(cr,image->pixbuf,0,0);
diff --git a/src/testWidget.c b/src/testWidget.c
index b8cbc7f..0f7da4d 100644
--- a/src/testWidget.c
+++ b/src/testWidget.c
@@ -26,8 +26,8 @@ int init (BDMWidget * widget)
images->widget = widget;
images->pixbuf = gdk_pixbuf_new_from_file("./babytux.png",NULL);
- images->pixW = 1280;
- images->pixH = 800;
+ images->pixW = gdk_pixbuf_get_width(images->pixbuf);
+ images->pixH = gdk_pixbuf_get_height(images->pixbuf);
widget->attrib->needsPainting = 1;
return 1;