mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-29 01:03:41 +01:00
Wrap the display globals in a struct (#16998)
* Wrap the display globals in a struct Makes it easier to search/replace these, for future refactorings. * Some renaming * Qt buildfix, also fix the Qt build on Mac (got broken with battery changes) * Attempt at buildfixing ios * UWP buildfix
This commit is contained in:
1 parent
3e98d313a8
commit
8b431b39ba
48 files changed
+319
-313
No files matched your search
+2
-2
@@ -344,11 +344,11 @@ bool TakeGameScreenshot(const Path &filename, ScreenshotFormat fmt, ScreenshotTy
|
||||
// Only crop to the top left when using a render screenshot.
|
||||
w = maxRes > 0 ? 480 * maxRes : PSP_CoreParameter().renderWidth;
|
||||
h = maxRes > 0 ? 272 * maxRes : PSP_CoreParameter().renderHeight;
|
||||
} else if (g_display_rotation != DisplayRotation::ROTATE_0) {
|
||||
} else if (g_display.rotation != DisplayRotation::ROTATE_0) {
|
||||
GPUDebugBuffer temp;
|
||||
success = gpuDebug->GetOutputFramebuffer(temp);
|
||||
if (success) {
|
||||
buf = ApplyRotation(temp, g_display_rotation);
|
||||
buf = ApplyRotation(temp, g_display.rotation);
|
||||
}
|
||||
} else {
|
||||
success = gpuDebug->GetOutputFramebuffer(buf);
|
||||
|
||||
Reference in new issue
Block a user