X-Git-Url: https://git.brokenzipper.com/gitweb?a=blobdiff_plain;f=render%2Frender.c;h=25a79020bc68d7a34ef850d36ef978abc3240176;hb=72ee5557c2b4d4a9266aa68cbe30d6866589bd1a;hp=397cebfaadc7dde9b7d490d2ac832847a4328223;hpb=6adb3d44544f0c740b63b07d2f9cfb9a1a83814a;p=chaz%2Fopenbox 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; } }