summaryrefslogtreecommitdiff
path: root/obrender/theme.c
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2011-01-25 12:02:42 -0500
committerMikael Magnusson <mikachu@gmail.com>2011-08-02 22:18:34 +0200
commitef0bfdc743dfaf783e8d6f776e8391b8546f9598 (patch)
tree77a640c0e704ea41b247bcc5a73b11d9fef74b38 /obrender/theme.c
parent177a0340a7eea0955a5b0795bdd4bd55779acf5c (diff)
be a bit more explicit about what is being copied from one texture to another
Diffstat (limited to 'obrender/theme.c')
-rw-r--r--obrender/theme.c13
1 files changed, 9 insertions, 4 deletions
diff --git a/obrender/theme.c b/obrender/theme.c
index ea49abec..85cdf4ab 100644
--- a/obrender/theme.c
+++ b/obrender/theme.c
@@ -1001,16 +1001,21 @@ RrTheme* RrThemeNew(const RrInstance *inst, const gchar *name,
theme->osd_hilite_label->texture[0].data.text.shadow_alpha =
theme->osd_text_active_shadow_alpha;
- theme->osd_unpressed_button->texture[0] =
- theme->osd_pressed_button->texture[0] =
- theme->osd_focused_button->texture[0] =
- theme->osd_hilite_label->texture[0];
+ theme->osd_unpressed_button->texture[0].type =
+ theme->osd_pressed_button->texture[0].type =
+ theme->osd_focused_button->texture[0].type =
+ RR_TEXTURE_TEXT;
theme->osd_unpressed_button->texture[0].data.text.justify =
theme->osd_pressed_button->texture[0].data.text.justify =
theme->osd_focused_button->texture[0].data.text.justify =
RR_JUSTIFY_CENTER;
+ theme->osd_unpressed_button->texture[0].data.text.font =
+ theme->osd_pressed_button->texture[0].data.text.font =
+ theme->osd_focused_button->texture[0].data.text.font =
+ theme->osd_font_hilite;
+
theme->osd_unpressed_button->texture[0].data.text.color =
theme->osd_unpressed_color;
theme->osd_pressed_button->texture[0].data.text.color =