Properly show OSD information of resolution
This commit is contained in:
parent
61a15c1465
commit
afc36d557e
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)
|
||||
{
|
||||
PSP_CoreParameter().renderWidth = 480 * zoom;
|
||||
PSP_CoreParameter().renderHeight = 272 * zoom;
|
||||
PSP_CoreParameter().outputWidth = 480 * zoom;
|
||||
PSP_CoreParameter().outputHeight = 272 * zoom;
|
||||
}
|
||||
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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue