mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-12 09:09:29 +01:00
Split the display layout config between landscape and portrait orientations
This commit is contained in:
1 parent
174d45279c
commit
4994246c8b
61 files changed
+482
-317
No files matched your search
@@ -6,6 +6,10 @@
|
||||
|
||||
DisplayProperties g_display;
|
||||
|
||||
DeviceOrientation DisplayProperties::GetDeviceOrientation() const {
|
||||
return (dp_yres > dp_xres * 1.1f) ? DeviceOrientation::Portrait : DeviceOrientation::Landscape;
|
||||
}
|
||||
|
||||
template<class T>
|
||||
void RotateRectToDisplayImpl(DisplayRect<T> &rect, T curRTWidth, T curRTHeight) {
|
||||
switch (g_display.rotation) {
|
||||
|
||||
Reference in new issue
Block a user