mirror of
https://github.com/CTCaer/RetroArch.git
synced 2025-02-04 10:36:50 +00:00
Pass is_idle to menu driver render function
This commit is contained in:
parent
a7d09733a6
commit
dd79c9a236
@ -560,7 +560,7 @@ static void mui_compute_entries_box(mui_handle_t* mui, int width)
|
||||
}
|
||||
}
|
||||
|
||||
static void mui_render(void *data)
|
||||
static void mui_render(void *data, bool is_idle)
|
||||
{
|
||||
menu_animation_ctx_delta_t delta;
|
||||
float delta_time;
|
||||
|
@ -46,7 +46,6 @@
|
||||
#include "../widgets/menu_input_dialog.h"
|
||||
|
||||
#include "../../configuration.h"
|
||||
#include "../../retroarch.h"
|
||||
#include "../../gfx/drivers_font_renderer/bitmap.h"
|
||||
|
||||
#define RGUI_TERM_START_X(width) (width / 21)
|
||||
@ -389,7 +388,7 @@ static void rgui_frame(void *data, video_frame_info_t *video_info)
|
||||
rgui->frame_count++;
|
||||
}
|
||||
|
||||
static void rgui_render(void *data)
|
||||
static void rgui_render(void *data, bool is_idle)
|
||||
{
|
||||
menu_animation_ctx_ticker_t ticker;
|
||||
unsigned x, y;
|
||||
@ -416,7 +415,7 @@ static void rgui_render(void *data)
|
||||
&& menu_driver_is_alive() && !msg_force)
|
||||
return;
|
||||
|
||||
if (runloop_ctl(RUNLOOP_CTL_IS_IDLE, NULL))
|
||||
if (is_idle)
|
||||
return;
|
||||
|
||||
if (!menu_display_get_update_pending())
|
||||
|
@ -55,7 +55,6 @@
|
||||
|
||||
#include "../../verbosity.h"
|
||||
#include "../../configuration.h"
|
||||
#include "../../retroarch.h"
|
||||
#include "../../playlist.h"
|
||||
#include "../../retroarch.h"
|
||||
|
||||
@ -2353,7 +2352,7 @@ static void xmb_draw_items(
|
||||
menu_display_blend_end();
|
||||
}
|
||||
|
||||
static void xmb_render(void *data)
|
||||
static void xmb_render(void *data, bool is_idle)
|
||||
{
|
||||
size_t i;
|
||||
float delta_time;
|
||||
|
@ -535,7 +535,7 @@ static void xui_set_list_text(int index, const wchar_t* leftText,
|
||||
}
|
||||
}
|
||||
|
||||
static void xui_render(void *data)
|
||||
static void xui_render(void *data, bool is_idle)
|
||||
{
|
||||
size_t end, i, selection, fb_pitch;
|
||||
unsigned fb_width, fb_height;
|
||||
|
@ -366,7 +366,7 @@ bool menu_driver_render(bool is_idle, bool rarch_is_inited,
|
||||
menu_animation_update_time(settings->bools.menu_timedate_enable);
|
||||
|
||||
if (menu_driver_ctx->render)
|
||||
menu_driver_ctx->render(menu_userdata);
|
||||
menu_driver_ctx->render(menu_userdata, is_idle);
|
||||
}
|
||||
|
||||
if (menu_driver_alive && !is_idle)
|
||||
|
@ -226,7 +226,7 @@ typedef struct menu_ctx_driver
|
||||
void (*set_texture)(void);
|
||||
void (*render_messagebox)(void *data, const char *msg);
|
||||
int (*iterate)(void *data, void *userdata, enum menu_action action);
|
||||
void (*render)(void *data);
|
||||
void (*render)(void *data, bool is_idle);
|
||||
void (*frame)(void *data, video_frame_info_t *video_info);
|
||||
void* (*init)(void**, bool);
|
||||
void (*free)(void*);
|
||||
|
Loading…
x
Reference in New Issue
Block a user