mirror of
https://github.com/CTCaer/RetroArch.git
synced 2025-03-07 02:47:24 +00:00
(360) force_resize_enable member was a hack for hacky orientation,
can go now that we do it properly
This commit is contained in:
parent
a47bcf6cc1
commit
b0de19f3e0
@ -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);
|
||||
|
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user