From 7b5a51db2ba1a006529e4f0e946c9a659c4f02b5 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Tue, 8 Apr 2003 02:00:08 +0000 Subject: use a size not area for the label --- engines/openbox/obrender.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'engines/openbox/obrender.c') diff --git a/engines/openbox/obrender.c b/engines/openbox/obrender.c index c765ef76..00272080 100644 --- a/engines/openbox/obrender.c +++ b/engines/openbox/obrender.c @@ -203,14 +203,14 @@ static void obrender_close(ObFrame *self, Appearance *a) paint(self->close, a); } -void render_label(Window win, Rect *area, char *text, +void render_label(Window win, Size *sz, char *text, gboolean hilight, gboolean toplevel) { Appearance *a; a = hilight ? ob_app_hilite_label : ob_app_unhilite_label; a->texture[0].data.text.string = text; - RECT_SET(a->area, 0, 0, area->width, area->height); + RECT_SET(a->area, 0, 0, sz->width, sz->height); a->texture[0].position = a->area; if (toplevel) { -- cgit v1.2.3