mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-30 17:53:42 +01:00
OpenXR - Ensure PSP aspect ratio for 2D content
This commit is contained in:
1 parent
70c4781feb
commit
d34d1e4af9
2 files changed
+2
-2
No files matched your search
@@ -394,7 +394,7 @@ void VR_EndFrame( engine_t* engine ) {
|
||||
cylinder_layer.pose.position = pos;
|
||||
cylinder_layer.radius = 12.0f;
|
||||
cylinder_layer.centralAngle = M_PI * 0.5f;
|
||||
cylinder_layer.aspectRatio = height / (float)width;
|
||||
cylinder_layer.aspectRatio = 1;
|
||||
|
||||
engine->appState.Layers[engine->appState.LayerCount++].Cylinder = cylinder_layer;
|
||||
} else {
|
||||
|
||||
@@ -346,7 +346,7 @@ void LinkedShader::UpdateUniforms(u32 vertType, const ShaderID &vsid, bool useBu
|
||||
if (hud) {
|
||||
float scale = 0.5f;
|
||||
render_->SetUniformF1(&u_scaleX, scale);
|
||||
render_->SetUniformF1(&u_scaleY, scale / 16.0f * 9.0f);
|
||||
render_->SetUniformF1(&u_scaleY, scale / 480.0f * 272.0f);
|
||||
} else {
|
||||
render_->SetUniformF1(&u_scaleX, 1.0f);
|
||||
render_->SetUniformF1(&u_scaleY, 1.0f);
|
||||
|
||||
Reference in new issue
Block a user