Skip to content

Commit 8be2115

Browse files
committed
Fix inverted Y coordinate passed to per-pixel expressions
1 parent bd9f68e commit 8be2115

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/libprojectM/MilkdropPreset/PerPixelMesh.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ void PerPixelMesh::CalculateMesh(const PresetState& presetState, const PerFrameC
230230
if (perPixelContext.perPixelCodeHandle)
231231
{
232232
*perPixelContext.x = static_cast<double>(curVertex.X() * 0.5f * presetState.renderContext.aspectX + 0.5f);
233-
*perPixelContext.y = static_cast<double>(curVertex.Y() * -0.5f * presetState.renderContext.aspectY + 0.5f);
233+
*perPixelContext.y = static_cast<double>(curVertex.Y() * 0.5f * presetState.renderContext.aspectY + 0.5f);
234234
*perPixelContext.rad = static_cast<double>(curRadiusAngle.radius);
235235
*perPixelContext.ang = static_cast<double>(curRadiusAngle.angle);
236236
*perPixelContext.zoom = static_cast<double>(*perFrameContext.zoom);

0 commit comments

Comments
 (0)