mirror of
https://github.com/libretro/RetroArch
synced 2025-02-21 18:40:09 +00:00
Get rid of RMenu context clear function
This commit is contained in:
parent
652bb00285
commit
ddc94054cb
@ -2421,8 +2421,6 @@ bool rmenu_iterate(void)
|
|||||||
rmenu_default_positions_t default_pos;
|
rmenu_default_positions_t default_pos;
|
||||||
device_ptr->ctx_driver->rmenu_set_default_pos(&default_pos);
|
device_ptr->ctx_driver->rmenu_set_default_pos(&default_pos);
|
||||||
|
|
||||||
device_ptr->ctx_driver->clear();
|
|
||||||
|
|
||||||
if (g_extern.draw_menu)
|
if (g_extern.draw_menu)
|
||||||
device_ptr->ctx_driver->set_blend(true);
|
device_ptr->ctx_driver->set_blend(true);
|
||||||
|
|
||||||
|
@ -275,11 +275,6 @@ static void gfx_ctx_swap_buffers(void)
|
|||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
static void gfx_ctx_clear(void)
|
|
||||||
{
|
|
||||||
glClear(GL_COLOR_BUFFER_BIT);
|
|
||||||
}
|
|
||||||
|
|
||||||
static void gfx_ctx_set_blend(bool enable)
|
static void gfx_ctx_set_blend(bool enable)
|
||||||
{
|
{
|
||||||
if(enable)
|
if(enable)
|
||||||
@ -542,7 +537,6 @@ const gfx_ctx_driver_t gfx_ctx_ps3 = {
|
|||||||
gfx_ctx_write_egl_image,
|
gfx_ctx_write_egl_image,
|
||||||
"ps3",
|
"ps3",
|
||||||
#ifdef HAVE_RMENU
|
#ifdef HAVE_RMENU
|
||||||
gfx_ctx_clear,
|
|
||||||
gfx_ctx_set_blend,
|
gfx_ctx_set_blend,
|
||||||
gfx_ctx_set_filtering,
|
gfx_ctx_set_filtering,
|
||||||
gfx_ctx_get_available_resolutions,
|
gfx_ctx_get_available_resolutions,
|
||||||
|
@ -186,23 +186,6 @@ static void gfx_ctx_xdk_swap_buffers(void)
|
|||||||
d3d->d3d_render_device->Present(NULL, NULL, NULL, NULL);
|
d3d->d3d_render_device->Present(NULL, NULL, NULL, NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void gfx_ctx_xdk_clear(void)
|
|
||||||
{
|
|
||||||
xdk_d3d_video_t *device_ptr = (xdk_d3d_video_t*)driver.video_data;
|
|
||||||
#ifdef _XBOX1
|
|
||||||
unsigned flicker_filter = g_extern.console.screen.state.flicker_filter.value;
|
|
||||||
bool soft_filter_enable = g_extern.console.screen.state.soft_filter.enable;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
device_ptr->d3d_render_device->Clear(0, NULL, D3DCLEAR_TARGET,
|
|
||||||
D3DCOLOR_ARGB(0, 0, 0, 0), 1.0f, 0);
|
|
||||||
#ifdef _XBOX1
|
|
||||||
device_ptr->d3d_render_device->BeginScene();
|
|
||||||
device_ptr->d3d_render_device->SetFlickerFilter(flicker_filter);
|
|
||||||
device_ptr->d3d_render_device->SetSoftDisplayFilter(soft_filter_enable);
|
|
||||||
#endif
|
|
||||||
}
|
|
||||||
|
|
||||||
static bool gfx_ctx_xdk_window_has_focus(void)
|
static bool gfx_ctx_xdk_window_has_focus(void)
|
||||||
{
|
{
|
||||||
return true;
|
return true;
|
||||||
@ -510,7 +493,6 @@ const gfx_ctx_driver_t gfx_ctx_xdk = {
|
|||||||
"xdk",
|
"xdk",
|
||||||
|
|
||||||
// RARCH_CONSOLE stuff.
|
// RARCH_CONSOLE stuff.
|
||||||
gfx_ctx_xdk_clear,
|
|
||||||
gfx_ctx_xdk_set_blend,
|
gfx_ctx_xdk_set_blend,
|
||||||
gfx_ctx_xdk_set_filtering,
|
gfx_ctx_xdk_set_filtering,
|
||||||
gfx_ctx_xdk_get_available_resolutions,
|
gfx_ctx_xdk_get_available_resolutions,
|
||||||
|
@ -105,7 +105,6 @@ typedef struct gfx_ctx_driver
|
|||||||
const char *ident;
|
const char *ident;
|
||||||
|
|
||||||
#if defined(HAVE_RMENU) || defined(_XBOX360)
|
#if defined(HAVE_RMENU) || defined(_XBOX360)
|
||||||
void (*clear)(void);
|
|
||||||
void (*set_blend)(bool enable);
|
void (*set_blend)(bool enable);
|
||||||
void (*set_filtering)(unsigned index, bool set_smooth);
|
void (*set_filtering)(unsigned index, bool set_smooth);
|
||||||
void (*get_available_resolutions)(void);
|
void (*get_available_resolutions)(void);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user