Skip to content
This repository was archived by the owner on Jul 22, 2024. It is now read-only.

Commit 3cf5764

Browse files
MortimerGorophilip-lamb
authored andcommitted
Fix curved-display density mismatch (#1380)
1 parent 0d7468e commit 3cf5764

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

app/src/main/cpp/Widget.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,8 +130,8 @@ struct Widget::State {
130130
cylinder->GetTextureSize(textureWidth, textureHeight);
131131

132132
const float radius = cylinder->GetCylinderRadius();
133-
const float surfaceWidth = (float)textureWidth / placement->density * placement->textureScale;
134-
const float surfaceHeight = (float)textureHeight / placement->density * placement->textureScale;
133+
const float surfaceWidth = (float)textureWidth / (placement->density * placement->textureScale);
134+
const float surfaceHeight = (float)textureHeight / (placement->density * placement->textureScale);
135135
// Cylinder density measures the pixels for a 360 cylinder
136136
// Oculus recommends 4680px density, which is 13 pixels per degree.
137137
const float theta = (float)M_PI * surfaceWidth / (cylinderDensity * 0.5f);

0 commit comments

Comments
 (0)