mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-12-02 02:33:43 +01:00
Move the hack to FramebufferCommon.cpp and rename.
This commit is contained in:
1 parent
722d34e09a
commit
ff9d33d2a7
5 files changed
+31
-77
No files matched your search
@@ -737,3 +737,29 @@ void FramebufferManagerCommon::NotifyBlockTransferAfter(u32 dstBasePtr, int dstS
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void FramebufferManagerCommon::SetRenderSize(VirtualFramebuffer *vfb) {
|
||||
float renderWidthFactor = (float)PSP_CoreParameter().renderWidth / 480.0f;
|
||||
float renderHeightFactor = (float)PSP_CoreParameter().renderHeight / 272.0f;
|
||||
bool force1x = false;
|
||||
switch (g_Config.iBloomHack) {
|
||||
case 1:
|
||||
force1x = vfb->bufferWidth <= 128 || vfb->bufferHeight <= 64;
|
||||
break;
|
||||
case 2:
|
||||
force1x = vfb->bufferWidth <= 256 || vfb->bufferHeight <= 128;
|
||||
break;
|
||||
case 3:
|
||||
force1x = vfb->bufferWidth <= 480 || vfb->bufferHeight <= 272;
|
||||
break;
|
||||
}
|
||||
|
||||
if (force1x && g_Config.iInternalResolution != 1) {
|
||||
vfb->renderWidth = vfb->bufferWidth;
|
||||
vfb->renderHeight = vfb->bufferHeight;
|
||||
}
|
||||
else {
|
||||
vfb->renderWidth = vfb->bufferWidth * renderWidthFactor;
|
||||
vfb->renderHeight = vfb->bufferHeight * renderHeightFactor;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user