font-color: Use the settings for the color

This commit is contained in:
Rob Loach 2017-12-27 16:38:36 -05:00
parent f51994d7e3
commit f96b285715
No known key found for this signature in database
GPG Key ID: 627C60834A74A21A

View File

@ -731,6 +731,7 @@ static void xmb_draw_text(
{
uint32_t color;
uint8_t a8;
settings_t *settings;
if (alpha > xmb->alpha)
alpha = xmb->alpha;
@ -741,7 +742,11 @@ static void xmb_draw_text(
if (a8 == 0)
return;
color = FONT_COLOR_RGBA(xmb_font_color_red, xmb_font_color_green, xmb_font_color_blue, a8);
settings = config_get_ptr();
color = FONT_COLOR_RGBA(
settings->uints.menu_xmb_font_color_red,
settings->uints.menu_xmb_font_color_green,
settings->uints.menu_xmb_font_color_blue, a8);
menu_display_draw_text(font, str, x, y,
width, height, color, text_align, scale_factor,