final working fix :D

openfl/openfl#2700

Co-Authored-By: Ne_Eo <NeeEoo@users.noreply.github.com>
This commit is contained in:
⍚~Nex
2024-03-19 21:51:00 +01:00
committed by GitHub
co-authored by Ne_Eo
parent 525a8ee527
commit ee9d0d0279
@@ -370,8 +370,8 @@ class DisplayObjectRenderer extends EventDispatcher
displayObject.__getFilterBounds(rect, displayObject.__cacheBitmapMatrix);
filterWidth = rect.width > 0 ? Math.ceil(rect.width * pixelRatio) : 0;
filterHeight = rect.height > 0 ? Math.ceil(rect.height * pixelRatio) : 0;
filterWidth = rect.width > 0 ? Math.floor(rect.width * pixelRatio) : 0;
filterHeight = rect.height > 0 ? Math.floor(rect.height * pixelRatio) : 0;
offsetX = rect.x > 0 ? Math.ceil(rect.x) : Math.floor(rect.x);
offsetY = rect.y > 0 ? Math.ceil(rect.y) : Math.floor(rect.y);