mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
Merge pull request #5241 from DanyalZia/patch-50
Properly show OSD information of resolution
This commit is contained in:
commit
d055954a83
2 changed files with 12 additions and 13 deletions
|
@ -1521,13 +1521,13 @@ void FramebufferManager::EndFrame() {
|
|||
DestroyAllFBOs();
|
||||
glstate.viewport.set(0, 0, PSP_CoreParameter().pixelWidth, PSP_CoreParameter().pixelHeight);
|
||||
int zoom = g_Config.iInternalResolution;
|
||||
if (zoom != 0)
|
||||
{
|
||||
if (zoom == 0) // auto mode
|
||||
zoom = (PSP_CoreParameter().pixelWidth + 479) / 480;
|
||||
|
||||
PSP_CoreParameter().renderWidth = 480 * zoom;
|
||||
PSP_CoreParameter().renderHeight = 272 * zoom;
|
||||
PSP_CoreParameter().outputWidth = 480 * zoom;
|
||||
PSP_CoreParameter().outputHeight = 272 * zoom;
|
||||
}
|
||||
resized_ = false;
|
||||
}
|
||||
|
||||
|
|
|
@ -225,13 +225,12 @@ namespace MainWindow
|
|||
// Round up to a zoom factor for the render size.
|
||||
int zoom = g_Config.iInternalResolution;
|
||||
if (zoom == 0) // auto mode
|
||||
{
|
||||
zoom = (rc.right - rc.left + 479) / 480;
|
||||
|
||||
PSP_CoreParameter().renderWidth = 480 * zoom;
|
||||
PSP_CoreParameter().renderHeight = 272 * zoom;
|
||||
PSP_CoreParameter().outputWidth = 480 * zoom;
|
||||
PSP_CoreParameter().outputHeight = 272 * zoom;
|
||||
}
|
||||
|
||||
if (displayOSM) {
|
||||
I18NCategory *g = GetI18NCategory("Graphics");
|
||||
|
|
Loading…
Add table
Reference in a new issue