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 w = h / FCardPanel.ASPECT_RATIO;
if (owner.isTapped()) {
w = owner.getWidth();
h = w * FCardPanel.ASPECT_RATIO;
y = owner.getHeight() - h;
h = w;
w = owner.getHeight();
y = pos.y + owner.getHeight() - h;
}
g.drawRect(2, Color.GREEN, x, y, w, h);
}