mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-17 11:24:27 +01:00
Let apps specify that they want portrait on startup again
This commit is contained in:
1 parent
a83ac35141
commit
8166e7a094
1 file changed
+8
@@ -20,6 +20,9 @@
|
||||
#include "SDL_audio.h"
|
||||
#include "SDL_video.h"
|
||||
#endif
|
||||
|
||||
#include <algorithm>
|
||||
|
||||
#include "base/display.h"
|
||||
#include "base/logging.h"
|
||||
#include "base/timeutil.h"
|
||||
@@ -374,6 +377,11 @@ int main(int argc, char *argv[]) {
|
||||
g_Config.bFullScreen = false;
|
||||
#endif
|
||||
}
|
||||
|
||||
if (!landscape) {
|
||||
std::swap(pixel_xres, pixel_yres);
|
||||
}
|
||||
|
||||
dp_xres = (float)pixel_xres;
|
||||
dp_yres = (float)pixel_yres;
|
||||
|
||||
|
||||
Reference in new issue
Block a user