mirror of
https://github.com/magefree/mage.git
synced 2025-12-22 11:32:00 -08:00
Fixed card's round corner render (more like real card);
This commit is contained in:
parent
7954031f41
commit
4654be5a7d
1 changed files with 1 additions and 1 deletions
|
|
@ -327,7 +327,7 @@ public final class ImageCache {
|
||||||
BufferedImage cornerImage = new BufferedImage(image.getWidth(), image.getHeight(), BufferedImage.TYPE_INT_ARGB);
|
BufferedImage cornerImage = new BufferedImage(image.getWidth(), image.getHeight(), BufferedImage.TYPE_INT_ARGB);
|
||||||
|
|
||||||
// corner
|
// corner
|
||||||
float ROUNDED_CORNER_SIZE = 0.15f; // see CardPanelComponentImpl
|
float ROUNDED_CORNER_SIZE = 0.11f; // see CardPanelComponentImpl
|
||||||
int cornerSizeBorder = Math.max(4, Math.round(image.getWidth() * ROUNDED_CORNER_SIZE));
|
int cornerSizeBorder = Math.max(4, Math.round(image.getWidth() * ROUNDED_CORNER_SIZE));
|
||||||
|
|
||||||
// corner mask
|
// corner mask
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue