mirror of
https://github.com/libretro/RetroArch.git
synced 2025-04-02 10:51:52 -04:00
(XMB) Shadow adjustments (#13815)
This commit is contained in:
parent
9dfc5950aa
commit
0dbd2bc3b9
4 changed files with 8 additions and 6 deletions
|
@ -574,7 +574,7 @@ void gfx_display_draw_text(
|
|||
{
|
||||
params.drop_x = shadow_offset;
|
||||
params.drop_y = -shadow_offset;
|
||||
params.drop_alpha = 0.35f;
|
||||
params.drop_alpha = GFX_SHADOW_ALPHA;
|
||||
}
|
||||
|
||||
if (video_st->poke && video_st->poke->set_osd_msg)
|
||||
|
|
|
@ -35,6 +35,8 @@
|
|||
|
||||
RETRO_BEGIN_DECLS
|
||||
|
||||
#define GFX_SHADOW_ALPHA 0.50f
|
||||
|
||||
/* Number of pixels corner-to-corner on a 1080p
|
||||
* display:
|
||||
* > sqrt((1920 * 1920) + (1080 * 1080))
|
||||
|
|
|
@ -9530,11 +9530,11 @@ MSG_HASH(
|
|||
)
|
||||
MSG_HASH(
|
||||
MENU_ENUM_LABEL_VALUE_XMB_SHADOWS_ENABLE,
|
||||
"Icon Shadows"
|
||||
"Draw Shadows"
|
||||
)
|
||||
MSG_HASH(
|
||||
MENU_ENUM_SUBLABEL_XMB_SHADOWS_ENABLE,
|
||||
"Draw drop shadows for all icons. This will have a minor performance hit."
|
||||
"Draw drop shadows for icons, thumbnails and letters. This will have a minor performance hit."
|
||||
)
|
||||
MSG_HASH(
|
||||
MENU_ENUM_LABEL_VALUE_XMB_RIBBON_ENABLE,
|
||||
|
|
|
@ -896,7 +896,7 @@ static void xmb_draw_icon(
|
|||
|
||||
if (xmb_shadows_enable)
|
||||
{
|
||||
gfx_display_set_alpha(xmb_coord_shadow, color[3] * 0.35f);
|
||||
gfx_display_set_alpha(xmb_coord_shadow, color[3] * GFX_SHADOW_ALPHA);
|
||||
|
||||
coords.color = xmb_coord_shadow;
|
||||
draw.x = x + shadow_offset;
|
||||
|
@ -4797,7 +4797,7 @@ static void xmb_draw_fullscreen_thumbnails(
|
|||
float shadow_offset = xmb->icon_size / 24.0f;
|
||||
|
||||
thumbnail_shadow.type = GFX_THUMBNAIL_SHADOW_DROP;
|
||||
thumbnail_shadow.alpha = 0.35f;
|
||||
thumbnail_shadow.alpha = GFX_SHADOW_ALPHA;
|
||||
thumbnail_shadow.drop.x_offset = shadow_offset;
|
||||
thumbnail_shadow.drop.y_offset = shadow_offset;
|
||||
}
|
||||
|
@ -4977,7 +4977,7 @@ static void xmb_frame(void *data, video_frame_info_t *video_info)
|
|||
: xmb->shadow_offset;
|
||||
|
||||
thumbnail_shadow.type = GFX_THUMBNAIL_SHADOW_DROP;
|
||||
thumbnail_shadow.alpha = 0.35f;
|
||||
thumbnail_shadow.alpha = GFX_SHADOW_ALPHA;
|
||||
thumbnail_shadow.drop.x_offset = shadow_offset;
|
||||
thumbnail_shadow.drop.y_offset = shadow_offset;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue