mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-15 07:20:31 +02:00
Since rotation is handled in place, the swapchain is recreated right after surfaceChanged, and the surface can still report the previous orientation's extent. On a Galaxy S8+ this happened in about one in four rotations, leaving a portrait swapchain on a landscape window or the other way around, squashed into half the screen until the next rotation. If the extent is exactly the window size transposed, use the window size. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>