summaryrefslogtreecommitdiff
path: root/render/render.c
diff options
context:
space:
mode:
authorDerek Foreman <manmower@gmail.com>2003-03-26 02:19:38 +0000
committerDerek Foreman <manmower@gmail.com>2003-03-26 02:19:38 +0000
commit2880e674eaa66b2d5639157e4506b404e2b183ad (patch)
treec806d3ac1c7eeed6fc1687e28021f93613fcf4c1 /render/render.c
parent4840f7e837d5f74f8c20d600c90936e954afa8a0 (diff)
add a Rect to the textures for positioning them
Diffstat (limited to 'render/render.c')
-rw-r--r--render/render.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/render/render.c b/render/render.c
index 397cebfa..25a79020 100644
--- a/render/render.c
+++ b/render/render.c
@@ -136,12 +136,14 @@ void x_paint(Window win, Appearance *l, int x, int y, int w, int h)
l->xftdraw = XftDrawCreate(ob_display, l->pixmap,
render_visual, render_colormap);
}
- font_draw(l->xftdraw, &l->texture[i].data.text, x, y, w, h);
+ font_draw(l->xftdraw, &l->texture[i].data.text,
+ &l->texture[i].position);
break;
case Bitmask:
if (l->texture[i].data.mask.color->gc == None)
color_allocate_gc(l->texture[i].data.mask.color);
- mask_draw(l->pixmap, &l->texture[i].data.mask, w, h);
+ mask_draw(l->pixmap, &l->texture[i].data.mask,
+ &l->texture[i].position);
break;
}
}