From e7882c0d3e5863006c873bd3014e1f1232305dea Mon Sep 17 00:00:00 2001 From: Jonas Kulla Date: Sat, 16 Aug 2014 14:22:14 +0200 Subject: [PATCH] Plane: Fix screen shaking in wrong direction --- src/plane.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/plane.cpp b/src/plane.cpp index 3729016..8b0f308 100644 --- a/src/plane.cpp +++ b/src/plane.cpp @@ -92,8 +92,8 @@ struct PlanePrivate if (gl.npot_repeat) { FloatRect srcRect; - srcRect.x = (sceneGeo.yOrigin + ox) / zoomX; - srcRect.y = (sceneGeo.xOrigin + oy) / zoomY; + srcRect.x = (sceneGeo.xOrigin + ox) / zoomX; + srcRect.y = (sceneGeo.yOrigin + oy) / zoomY; srcRect.w = sceneGeo.rect.w / zoomX; srcRect.h = sceneGeo.rect.h / zoomY;