mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-16 10:48:00 +00:00
Fix selection border for tapped cards
This commit is contained in:
@@ -188,9 +188,9 @@ public class InputSelectCard {
|
|||||||
float h = owner.getHeight();
|
float h = owner.getHeight();
|
||||||
float w = h / FCardPanel.ASPECT_RATIO;
|
float w = h / FCardPanel.ASPECT_RATIO;
|
||||||
if (owner.isTapped()) {
|
if (owner.isTapped()) {
|
||||||
w = owner.getWidth();
|
h = w;
|
||||||
h = w * FCardPanel.ASPECT_RATIO;
|
w = owner.getHeight();
|
||||||
y = owner.getHeight() - h;
|
y = pos.y + owner.getHeight() - h;
|
||||||
}
|
}
|
||||||
g.drawRect(2, Color.GREEN, x, y, w, h);
|
g.drawRect(2, Color.GREEN, x, y, w, h);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user