mirror of
https://github.com/hrydgard/ppsspp.git
synced 2024-11-28 07:50:49 +00:00
Fixes Drawing size in non-buffered
This commit is contained in:
parent
8c6bd4ef51
commit
f1ca139444
@ -328,16 +328,15 @@ void TransformDrawEngine::ApplyDrawState(int prim) {
|
||||
renderY = 0.0f;
|
||||
renderWidth = framebufferManager_->GetRenderWidth();
|
||||
renderHeight = framebufferManager_->GetRenderHeight();
|
||||
renderWidthFactor = (float)renderWidth / framebufferManager_->GetTargetWidth();
|
||||
renderHeightFactor = (float)renderHeight / framebufferManager_->GetTargetHeight();
|
||||
} else {
|
||||
// TODO: Aspect-ratio aware and centered
|
||||
float pixelW = PSP_CoreParameter().pixelWidth;
|
||||
float pixelH = PSP_CoreParameter().pixelHeight;
|
||||
CenterRect(&renderX, &renderY, &renderWidth, &renderHeight, 480, 272, pixelW, pixelH);
|
||||
renderWidthFactor = renderWidth / 480.0f;
|
||||
renderHeightFactor = renderHeight / 272.0f;
|
||||
}
|
||||
|
||||
renderWidthFactor = (float)renderWidth / framebufferManager_->GetTargetWidth();
|
||||
renderHeightFactor = (float)renderHeight / framebufferManager_->GetTargetHeight();
|
||||
|
||||
bool throughmode = gstate.isModeThrough();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user