mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-17 19:34:39 +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
@@ -564,6 +564,12 @@ static void NotifyUserIfSlow() {
|
||||
}
|
||||
}
|
||||
|
||||
static DisplayLayoutConfig g_displayLayoutConfigCached;
|
||||
|
||||
void __DisplaySetDisplayLayoutConfig(const DisplayLayoutConfig &config) {
|
||||
g_displayLayoutConfigCached = config;
|
||||
}
|
||||
|
||||
void __DisplayFlip(int cyclesLate) {
|
||||
_dbg_assert_(gpu);
|
||||
|
||||
@@ -644,7 +650,7 @@ void __DisplayFlip(int cyclesLate) {
|
||||
}
|
||||
}
|
||||
if (nextFrame) {
|
||||
gpu->CopyDisplayToOutput(fbReallyDirty);
|
||||
gpu->CopyDisplayToOutput(g_displayLayoutConfigCached, fbReallyDirty);
|
||||
if (fbReallyDirty) {
|
||||
DisplayFireActualFlip();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user