Split the display layout config between landscape and portrait orientations

This commit is contained in:
Henrik Rydgård committed 2025-10-31 10:43:44 +01:00
1 parent 174d45279c
commit 4994246c8b
61 files changed
+482 -317

No files matched your search

+4
View File
@@ -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) {