mirror of
https://github.com/libretro/RetroArch
synced 2025-02-28 22:13:51 +00:00
Turn menu_display_set_alpha into macro
This commit is contained in:
parent
087debe45d
commit
a626a30098
@ -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);
|
||||
}
|
||||
|
@ -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)
|
||||
|
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user