(360) force_resize_enable member was a hack for hacky orientation,

can go now that we do it properly
This commit is contained in:
TwinAphex51224 2012-03-10 16:57:59 +01:00
parent a47bcf6cc1
commit b0de19f3e0
3 changed files with 1 additions and 9 deletions

View File

@ -224,22 +224,18 @@ HRESULT CSSNESQuickMenu::OnNotifyPress( HXUIOBJ hObjPressed, int & bHandled )
case ORIENTATION_NORMAL:
g_console.screen_orientation = ORIENTATION_VERTICAL;
m_quickmenulist.SetText(MENU_ITEM_ORIENTATION, L"Orientation: Vertical");
g_console.force_resize_enable = true;
break;
case ORIENTATION_VERTICAL:
g_console.screen_orientation = ORIENTATION_FLIPPED;
m_quickmenulist.SetText(MENU_ITEM_ORIENTATION, L"Orientation: Flipped");
g_console.force_resize_enable = true;
break;
case ORIENTATION_FLIPPED:
g_console.screen_orientation = ORIENTATION_FLIPPED_ROTATED;
m_quickmenulist.SetText(MENU_ITEM_ORIENTATION, L"Orientation: Flipped Rotated");
g_console.force_resize_enable = true;
break;
case ORIENTATION_FLIPPED_ROTATED:
g_console.screen_orientation = ORIENTATION_NORMAL;
m_quickmenulist.SetText(MENU_ITEM_ORIENTATION, L"Orientation: Normal");
g_console.force_resize_enable = true;
break;
}
xdk360_set_orientation(g_console.screen_orientation);

View File

@ -358,7 +358,7 @@ static bool xdk360_gfx_frame(void *data, const void *frame,
D3DDevice_Clear(vid->xdk360_render_device, 0, NULL, D3DCLEAR_TARGET,
0xff000000, 1.0f, 0, FALSE);
if (vid->last_width != width || vid->last_height != height || g_console.force_resize_enable)
if (vid->last_width != width || vid->last_height != height)
{
D3DLOCKED_RECT d3dlr;
@ -382,7 +382,6 @@ static bool xdk360_gfx_frame(void *data, const void *frame,
vid->last_width = width;
vid->last_height = height;
g_console.force_resize_enable = false;
}
vid->xdk360_render_device->SetVertexShaderConstantF(0, (FLOAT*)&vid->modelViewProj, 4);

View File

@ -188,9 +188,6 @@ struct console_settings
bool block_config_read;
bool default_sram_dir_enable;
bool default_savestate_dir_enable;
#ifdef _XBOX
bool force_resize_enable;
#endif
bool frame_advance_enable;
bool gamma_correction_enable;
bool initialize_ssnes_enable;