mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-06-08 07:35:05 +00:00
Fixed imagetag.getShape (caused by changing scale of matrix to float earlier)
This commit is contained in:
@@ -188,10 +188,10 @@ public abstract class ImageTag extends DrawableTag {
|
||||
matrix.hasScale = true;
|
||||
if (fill) {
|
||||
RECT imageRect = getRect();
|
||||
matrix.scaleX = (int) ((((long) SWF.unitDivisor) << 16) * rect.getWidth() / imageRect.getWidth());
|
||||
matrix.scaleY = (int) ((((long) SWF.unitDivisor) << 16) * rect.getHeight() / imageRect.getHeight());
|
||||
matrix.scaleX = (float) (SWF.unitDivisor * rect.getWidth() / imageRect.getWidth());
|
||||
matrix.scaleY = (float) (SWF.unitDivisor * rect.getHeight() / imageRect.getHeight());
|
||||
} else {
|
||||
matrix.scaleX = ((int) SWF.unitDivisor) << 16;
|
||||
matrix.scaleX = (float) SWF.unitDivisor;
|
||||
matrix.scaleY = matrix.scaleX;
|
||||
}
|
||||
if (translated) {
|
||||
|
||||
Reference in New Issue
Block a user