mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 12:48:00 +00:00
- proper - images shouldn't scale higher than a ratio of 1 anymore.
This commit is contained in:
@@ -70,12 +70,6 @@
|
|||||||
} else
|
} else
|
||||||
targetHeight = panelHeight;
|
targetHeight = panelHeight;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (targetWidth > 201 && srcWidth <= 201)
|
|
||||||
targetWidth = 201;
|
|
||||||
if (targetHeight > 285 && srcHeight <= 286)
|
|
||||||
targetHeight = 285;
|
|
||||||
|
|
||||||
ScalingInfo info = new ScalingInfo();
|
ScalingInfo info = new ScalingInfo();
|
||||||
info.targetWidth = targetWidth;
|
info.targetWidth = targetWidth;
|
||||||
info.targetHeight = targetHeight;
|
info.targetHeight = targetHeight;
|
||||||
|
|||||||
@@ -1259,7 +1259,7 @@ public class GuiDisplay3 extends JFrame implements Display, NewConstants, NewCon
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
cardImagePanel.setScalingBlur(false); //use blured image if scaling down more than 50%
|
cardImagePanel.setScalingBlur(false); //use blured image if scaling down more than 50%
|
||||||
cardImagePanel.setScaleLarger(true); //upscale if needed true
|
cardImagePanel.setScaleLarger(false); //upscale if needed true
|
||||||
cardImagePanel.setScalingType(ScalingType.bicubic); // type of scaling bicubic has good quality / speed ratio
|
cardImagePanel.setScalingType(ScalingType.bicubic); // type of scaling bicubic has good quality / speed ratio
|
||||||
cardImagePanel.setScalingMultiPassType(MultipassType.none);
|
cardImagePanel.setScalingMultiPassType(MultipassType.none);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user