(PS3/XDK) Remove gfx_ctx_set_overscan

This commit is contained in:
twinaphex 2013-03-10 20:13:06 +01:00
parent 9400d4030f
commit 7be75b29dc
3 changed files with 9 additions and 22 deletions

View File

@ -1454,17 +1454,23 @@ static int set_setting_action(void *data, unsigned switchvalue, uint64_t input)
if(input & (1ULL << RMENU_DEVICE_NAV_LEFT))
{
menu_settings_set(S_OVERSCAN_DECREMENT);
gfx_ctx_set_overscan();
if (driver.video_poke->apply_state_changes)
driver.video_poke->apply_state_changes(driver.video_data);
}
if((input & (1ULL << RMENU_DEVICE_NAV_RIGHT)) || (input & (1ULL << RMENU_DEVICE_NAV_B)))
{
menu_settings_set(S_OVERSCAN_INCREMENT);
gfx_ctx_set_overscan();
if (driver.video_poke->apply_state_changes)
driver.video_poke->apply_state_changes(driver.video_data);
}
if(input & (1ULL << RMENU_DEVICE_NAV_START))
{
menu_settings_set_default(S_DEF_OVERSCAN);
gfx_ctx_set_overscan();
if (driver.video_poke->apply_state_changes)
driver.video_poke->apply_state_changes(driver.video_data);
}
break;
case SETTING_REFRESH_RATE:

View File

@ -398,15 +398,6 @@ static void gfx_ctx_destroy(void)
static void gfx_ctx_input_driver(const input_driver_t **input, void **input_data) { }
static void gfx_ctx_set_overscan(void)
{
gl_t *gl = driver.video_data;
if (!gl)
return;
gl->should_resize = true;
}
static bool gfx_ctx_bind_api(enum gfx_ctx_api api)
{
return api == GFX_CTX_OPENGL_API || GFX_CTX_OPENGL_ES_API;

View File

@ -359,16 +359,6 @@ static bool gfx_ctx_xdk_bind_api(enum gfx_ctx_api api)
TODO: Refactor
============================================================ */
void gfx_ctx_set_overscan(void)
{
/* TODO: implement */
xdk_d3d_video_t *d3d = (xdk_d3d_video_t*)driver.video_data;
if (!d3d)
return;
d3d->should_resize = true;
}
int gfx_ctx_xdk_check_resolution(unsigned resolution_id)
{
/* TODO: implement */