From 0237c7cb3e0f014ca5e7be6ea38144cb0500cc78 Mon Sep 17 00:00:00 2001 From: Silent Date: Sun, 2 Jun 2019 21:06:13 +0200 Subject: [PATCH] UWP: Fix overscan on Xbox One Previously the game would display with on around 80% of the screen and aligned to top left (so with black bars on right and bottom). With this fix, it displays fullscreen properly. Windows is unaffected, and reportedly no issues on Windows Phone either. --- UWP/PPSSPP_UWPMain.cpp | 8 -------- 1 file changed, 8 deletions(-) diff --git a/UWP/PPSSPP_UWPMain.cpp b/UWP/PPSSPP_UWPMain.cpp index b7187575f4..1f77adf425 100644 --- a/UWP/PPSSPP_UWPMain.cpp +++ b/UWP/PPSSPP_UWPMain.cpp @@ -170,12 +170,6 @@ bool PPSSPP_UWPMain::Render() { time_update(); auto context = m_deviceResources->GetD3DDeviceContext(); - auto bounds = Windows::UI::ViewManagement::ApplicationView::GetForCurrentView()->VisibleBounds; - - int boundTop = bounds.Top; - int boundLeft = bounds.Left; - int boundedWidth = bounds.Width; - int boundedHeight = bounds.Height; switch (m_deviceResources->ComputeDisplayRotation()) { case DXGI_MODE_ROTATION_IDENTITY: g_display_rotation = DisplayRotation::ROTATE_0; break; @@ -198,8 +192,6 @@ bool PPSSPP_UWPMain::Render() { } g_dpi = m_deviceResources->GetActualDpi(); - pixel_xres = (g_dpi / 96.0f) * boundedWidth; - pixel_yres = (g_dpi / 96.0f) * boundedHeight; if (System_GetPropertyInt(SYSPROP_DEVICE_TYPE) == DEVICE_TYPE_MOBILE) { // Boost DPI a bit to look better.