mirror of
https://github.com/libretro/RetroArch
synced 2025-04-16 17:43:02 +00:00
(GLUI) Refactor shadow height, make shadow height independant of header height
This commit is contained in:
parent
1ab7a65597
commit
d91462fd53
@ -69,6 +69,7 @@ typedef struct mui_handle
|
||||
{
|
||||
unsigned tabs_height;
|
||||
unsigned line_height;
|
||||
unsigned shadow_height;
|
||||
unsigned icon_size;
|
||||
unsigned margin;
|
||||
unsigned glyph_width;
|
||||
@ -814,7 +815,7 @@ static void mui_frame(void)
|
||||
}
|
||||
|
||||
mui_render_quad(0, header_height, width,
|
||||
header_height/12,
|
||||
mui->shadow_height,
|
||||
width, height,
|
||||
&shadow_bg[0]);
|
||||
|
||||
@ -917,6 +918,7 @@ static void mui_layout(menu_handle_t *menu, mui_handle_t *mui)
|
||||
new_header_height = scale_factor / 3;
|
||||
new_font_size = scale_factor / 9;
|
||||
|
||||
mui->shadow_height = scale_factor / 36;
|
||||
mui->tabs_height = scale_factor / 3;
|
||||
mui->line_height = scale_factor / 3;
|
||||
mui->margin = scale_factor / 9;
|
||||
|
Loading…
x
Reference in New Issue
Block a user