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;