mirror of
https://github.com/libretro/RetroArch
synced 2025-02-20 06:40:18 +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;
|
unsigned width, height;
|
||||||
glui_handle_t *glui = NULL;
|
glui_handle_t *glui = NULL;
|
||||||
menu_display_t *disp = menu_display_get_ptr();
|
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();
|
menu_handle_t *menu = menu_driver_get_ptr();
|
||||||
settings_t *settings = config_get_ptr();
|
settings_t *settings = config_get_ptr();
|
||||||
|
|
||||||
|
@ -700,22 +700,24 @@ static void rgui_free(void *data)
|
|||||||
|
|
||||||
static void rgui_set_texture(void)
|
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();
|
menu_framebuf_t *frame_buf = menu_display_fb_get_ptr();
|
||||||
|
|
||||||
if (!menu)
|
if (!menu)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (!frame_buf->dirty)
|
if (!frame_buf->dirty)
|
||||||
return;
|
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);
|
menu_display_ctl(MENU_DISPLAY_CTL_UNSET_FRAMEBUFFER_DIRTY_FLAG, NULL);
|
||||||
|
|
||||||
video_driver_set_texture_frame(
|
video_driver_set_texture_frame(
|
||||||
frame_buf->data,
|
frame_buf->data,
|
||||||
false,
|
false,
|
||||||
frame_buf->width,
|
fb_width,
|
||||||
frame_buf->height,
|
fb_height,
|
||||||
1.0f);
|
1.0f);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -733,7 +735,6 @@ static void rgui_navigation_set(bool scroll)
|
|||||||
{
|
{
|
||||||
size_t selection, fb_width, fb_height;
|
size_t selection, fb_width, fb_height;
|
||||||
menu_handle_t *menu = menu_driver_get_ptr();
|
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();
|
size_t end = menu_entries_get_end();
|
||||||
if (!menu_navigation_ctl(MENU_NAVIGATION_CTL_GET_SELECTION, &selection))
|
if (!menu_navigation_ctl(MENU_NAVIGATION_CTL_GET_SELECTION, &selection))
|
||||||
return;
|
return;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user