summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorracarr <racarr>2007-01-29 01:55:52 +0000
committerracarr <racarr>2007-01-29 01:55:52 +0000
commit1df92d80aa616c2a89e6077e4944acd254fa9e42 (patch)
tree74f4b72613aa31b0b4f2d49e73eda629ea7ddbab
parent6c01732296c69ae3cf3fe4f092ae28845cf26c23 (diff)
downloadberyl-desktop-manager-1df92d80aa616c2a89e6077e4944acd254fa9e42.tar.gz
beryl-desktop-manager-1df92d80aa616c2a89e6077e4944acd254fa9e42.tar.bz2
cairo_scale isn't really what we want here
-rw-r--r--src/bdm.c3
-rw-r--r--src/testWidget.c5
2 files changed, 5 insertions, 3 deletions
diff --git a/src/bdm.c b/src/bdm.c
index 7589502..8941592 100644
--- a/src/bdm.c
+++ b/src/bdm.c
@@ -52,9 +52,10 @@ 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_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);
gdk_cairo_set_source_pixbuf(cr,image->pixbuf,0,0);
diff --git a/src/testWidget.c b/src/testWidget.c
index c966ab9..b8cbc7f 100644
--- a/src/testWidget.c
+++ b/src/testWidget.c
@@ -12,8 +12,8 @@ int init (BDMWidget * widget)
images->attrib = malloc(sizeof(BDMPaintAttribs));
- images->attrib->x = 100;
- images->attrib->y = 100;
+ images->attrib->x = 500;
+ images->attrib->y = 500;
images->attrib->alpha = 1.0f;
images->attrib->width = 100;
images->attrib->height = 100;
@@ -43,6 +43,7 @@ int fini (void)
int update (void)
{
// BLA
+ images->attrib->x+=1;
return 1;
}