summaryrefslogtreecommitdiff
path: root/src/bdm.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/bdm.c')
-rw-r--r--src/bdm.c20
1 files changed, 11 insertions, 9 deletions
diff --git a/src/bdm.c b/src/bdm.c
index abf4cfb..980aad2 100644
--- a/src/bdm.c
+++ b/src/bdm.c
@@ -53,9 +53,9 @@ static void renderImage(cairo_t * cr, BDMImage * image, ScreenArea * area)
cairo_rectangle(cr,widx,widy,widx+width,widy+height);
cairo_move_to(cr,widx+x,widy+y);
- cairo_clip(cr);
+ cairo_clip(cr);
- cairo_scale(cr,.5,.5);
+ //cairo_scale(cr,(float)image->attrib->width/(float)image->pixW,image->attrib->height/(float)image->pixH);
gdk_cairo_set_source_pixbuf(cr,image->pixbuf,x,y);
cairo_paint_with_alpha(cr,image->attrib->alpha);
@@ -107,21 +107,23 @@ static void renderText (cairo_t * cr, BDMText * text, ScreenArea * area)
pango_cairo_update_layout (cr, layout);
- cairo_set_source_rgba(cr,0,0,0,0);
- cairo_paint(cr);
cairo_save(cr);
cairo_set_operator (cr, text->attrib->cairoOperator);
pango_layout_get_pixel_size (layout, &w, &h);
- cairo_scale (cr, (float)text->attrib->width/(float)w,
- (float)text->attrib->height/(float)h);
+// cairo_scale (cr, (float)text->attrib->width/(float)w,
+// (float)text->attrib->height/(float)h);
cairo_rotate(cr,text->attrib->xrot);
- cairo_set_source_rgba (cr, text->color[0] / 65535.0, text->color[1] / 65535.0,
- text->color[2] / 65535.0, text->color[3] / 65535.0);
+// cairo_set_source_rgba (cr, text->color[0] / 65535.0, text->color[1] / 65535.0,
+// text->color[2] / 65535.0, text->color[3] / 65535.0);
+// cairo_rectangle (cr, text->widget->attrib->x, text->widget->attrib->y,
+// text->widget->attrib->x + w,
+// text->widget->attrib->y + h);
cairo_move_to (cr, text->widget->attrib->x + text->attrib->x,
text->widget->attrib->y + text->attrib->y);
+// cairo_clip (cr);
pango_cairo_show_layout (cr, layout);
- cairo_paint_with_alpha(cr, text->attrib->alpha);
+ cairo_paint_with_alpha (cr, text->attrib->alpha);
g_object_unref (layout);
cairo_restore (cr);