diff options
| author | Dana Jansens <danakj@orodu.net> | 2003-04-08 02:00:08 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2003-04-08 02:00:08 +0000 |
| commit | 7b5a51db2ba1a006529e4f0e946c9a659c4f02b5 (patch) | |
| tree | 3bd7db6d787725d1618b83647c9a4818d500c13b /engines/openbox/obrender.c | |
| parent | 0272ef26e719b2b817b21afaaed1bb7331942eac (diff) | |
use a size not area for the label
Diffstat (limited to 'engines/openbox/obrender.c')
| -rw-r--r-- | engines/openbox/obrender.c | 4 |
1 files changed, 2 insertions, 2 deletions
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) { |
