mirror of
https://github.com/CTCaer/RetroArch.git
synced 2025-02-08 12:50:07 +00:00
(Menu) Refactors
This commit is contained in:
parent
8dbc4c0eb0
commit
f9742d21a2
@ -210,7 +210,6 @@ static void glui_render(void)
|
||||
unsigned width, height;
|
||||
glui_handle_t *glui = NULL;
|
||||
menu_display_t *disp = menu_display_get_ptr();
|
||||
menu_framebuf_t *frame_buf = menu_display_fb_get_ptr();
|
||||
menu_handle_t *menu = menu_driver_get_ptr();
|
||||
settings_t *settings = config_get_ptr();
|
||||
|
||||
|
@ -700,22 +700,24 @@ static void rgui_free(void *data)
|
||||
|
||||
static void rgui_set_texture(void)
|
||||
{
|
||||
menu_handle_t *menu = menu_driver_get_ptr();
|
||||
unsigned fb_width, fb_height;
|
||||
menu_handle_t *menu = menu_driver_get_ptr();
|
||||
menu_framebuf_t *frame_buf = menu_display_fb_get_ptr();
|
||||
|
||||
if (!menu)
|
||||
return;
|
||||
|
||||
if (!frame_buf->dirty)
|
||||
return;
|
||||
|
||||
menu_display_ctl(MENU_DISPLAY_CTL_WIDTH, &fb_width);
|
||||
menu_display_ctl(MENU_DISPLAY_CTL_HEIGHT, &fb_height);
|
||||
menu_display_ctl(MENU_DISPLAY_CTL_UNSET_FRAMEBUFFER_DIRTY_FLAG, NULL);
|
||||
|
||||
video_driver_set_texture_frame(
|
||||
frame_buf->data,
|
||||
false,
|
||||
frame_buf->width,
|
||||
frame_buf->height,
|
||||
fb_width,
|
||||
fb_height,
|
||||
1.0f);
|
||||
}
|
||||
|
||||
@ -733,7 +735,6 @@ static void rgui_navigation_set(bool scroll)
|
||||
{
|
||||
size_t selection, fb_width, fb_height;
|
||||
menu_handle_t *menu = menu_driver_get_ptr();
|
||||
menu_framebuf_t *frame_buf = menu_display_fb_get_ptr();
|
||||
size_t end = menu_entries_get_end();
|
||||
if (!menu_navigation_ctl(MENU_NAVIGATION_CTL_GET_SELECTION, &selection))
|
||||
return;
|
||||
|
Loading…
x
Reference in New Issue
Block a user