From 01247931a75dae41ce3f852364435375be9be458 Mon Sep 17 00:00:00 2001 From: Bitto Date: Wed, 1 Jul 2026 20:32:29 +0100 Subject: [PATCH] Fix FunkinText drifting when zoomFactor != 1 --- source/funkin/backend/FunkinText.hx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/source/funkin/backend/FunkinText.hx b/source/funkin/backend/FunkinText.hx index 5bde26cb4..cd4345fee 100644 --- a/source/funkin/backend/FunkinText.hx +++ b/source/funkin/backend/FunkinText.hx @@ -47,17 +47,17 @@ class FunkinText extends FlxText private inline function __getZoomAnchorX(camera:FlxCamera):Float { if (Flags.USE_LEGACY_ZOOM_FACTOR) - return camera.width * 0.5; + return camera.width * 0.5 - origin.x; - return camera.width * 0.5 + camera.scroll.x * scrollFactor.x; + return camera.width * 0.5 + camera.scroll.x * scrollFactor.x - origin.x; } private inline function __getZoomAnchorY(camera:FlxCamera):Float { if (Flags.USE_LEGACY_ZOOM_FACTOR) - return camera.height * 0.5; + return camera.height * 0.5 - origin.y; - return camera.height * 0.5 + camera.scroll.y * scrollFactor.y; + return camera.height * 0.5 + camera.scroll.y * scrollFactor.y - origin.y; } override public function draw():Void