diff --git a/menu/drivers/xmb.c b/menu/drivers/xmb.c index 468d92f6b3..ecf0bd230e 100644 --- a/menu/drivers/xmb.c +++ b/menu/drivers/xmb.c @@ -679,7 +679,7 @@ static void xmb_draw_thumbnail( draw.x = x; draw.y = height - y; - menu_display_set_alpha((float*)coords.color, 1.0f); + menu_display_set_alpha(color, 1.0f); menu_display_draw(&draw); } diff --git a/menu/menu_driver.c b/menu/menu_driver.c index 870beca2c6..4ae54b58da 100644 --- a/menu/menu_driver.c +++ b/menu/menu_driver.c @@ -1211,13 +1211,6 @@ void menu_display_draw_text( video_driver_set_osd_msg(text, ¶ms, (void*)font); } -void menu_display_set_alpha(float *color, float alpha_value) -{ - if (!color) - return; - color[3] = color[7] = color[11] = color[15] = alpha_value; -} - void menu_display_reset_textures_list( const char *texture_path, const char *iconpath, uintptr_t *item, enum texture_filter_type filter_type) diff --git a/menu/menu_driver.h b/menu/menu_driver.h index 61c1af0af8..ab51e7d31a 100644 --- a/menu/menu_driver.h +++ b/menu/menu_driver.h @@ -676,7 +676,7 @@ void menu_display_draw_text( uint32_t color, enum text_alignment text_align, float scale_factor, bool shadows_enable, float shadow_offset); -void menu_display_set_alpha(float *color, float alpha_value); +#define menu_display_set_alpha(color, alpha_value) (color[3] = color[7] = color[11] = color[15] = (alpha_value)) font_data_t *menu_display_font(enum application_special_type type, float font_size, bool video_is_threaded);