Get rid of RMenu context clear function

This commit is contained in:
twinaphex 2012-12-18 09:17:40 +01:00
parent 652bb00285
commit ddc94054cb
4 changed files with 0 additions and 27 deletions

View File

@ -2421,8 +2421,6 @@ bool rmenu_iterate(void)
rmenu_default_positions_t default_pos;
device_ptr->ctx_driver->rmenu_set_default_pos(&default_pos);
device_ptr->ctx_driver->clear();
if (g_extern.draw_menu)
device_ptr->ctx_driver->set_blend(true);

View File

@ -275,11 +275,6 @@ static void gfx_ctx_swap_buffers(void)
#endif
}
static void gfx_ctx_clear(void)
{
glClear(GL_COLOR_BUFFER_BIT);
}
static void gfx_ctx_set_blend(bool enable)
{
if(enable)
@ -542,7 +537,6 @@ const gfx_ctx_driver_t gfx_ctx_ps3 = {
gfx_ctx_write_egl_image,
"ps3",
#ifdef HAVE_RMENU
gfx_ctx_clear,
gfx_ctx_set_blend,
gfx_ctx_set_filtering,
gfx_ctx_get_available_resolutions,

View File

@ -186,23 +186,6 @@ static void gfx_ctx_xdk_swap_buffers(void)
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)
{
return true;
@ -510,7 +493,6 @@ const gfx_ctx_driver_t gfx_ctx_xdk = {
"xdk",
// RARCH_CONSOLE stuff.
gfx_ctx_xdk_clear,
gfx_ctx_xdk_set_blend,
gfx_ctx_xdk_set_filtering,
gfx_ctx_xdk_get_available_resolutions,

View File

@ -105,7 +105,6 @@ typedef struct gfx_ctx_driver
const char *ident;
#if defined(HAVE_RMENU) || defined(_XBOX360)
void (*clear)(void);
void (*set_blend)(bool enable);
void (*set_filtering)(unsigned index, bool set_smooth);
void (*get_available_resolutions)(void);