Fix selection border for tapped cards

This commit is contained in:
drdev
2014-04-16 03:43:18 +00:00
parent 322079030f
commit b9a1556a2a

View File

@@ -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);
} }