Fix field separator

This commit is contained in:
drdev
2014-05-13 01:42:10 +00:00
parent 7a8b1d52ed
commit 35fa0e3b63

View File

@@ -29,11 +29,9 @@ import forge.game.player.Player;
import forge.game.zone.ZoneType; import forge.game.zone.ZoneType;
import forge.toolbox.FEvent; import forge.toolbox.FEvent;
import forge.toolbox.FEvent.FEventHandler; import forge.toolbox.FEvent.FEventHandler;
import forge.util.Utils;
public class MatchScreen extends FScreen { public class MatchScreen extends FScreen {
public static FSkinColor BORDER_COLOR = FSkinColor.get(Colors.CLR_BORDERS); public static FSkinColor BORDER_COLOR = FSkinColor.get(Colors.CLR_BORDERS);
private static final float SEPARATOR_THICKNESS = Utils.scaleY(1);
private final Map<Player, VPlayerPanel> playerPanels = new HashMap<Player, VPlayerPanel>(); private final Map<Player, VPlayerPanel> playerPanels = new HashMap<Player, VPlayerPanel>();
private final FMenuBar menuBar; private final FMenuBar menuBar;
@@ -139,8 +137,8 @@ public class MatchScreen extends FScreen {
} }
g.drawLine(1, BORDER_COLOR, 0, y, w, y); g.drawLine(1, BORDER_COLOR, 0, y, w, y);
y = midField - SEPARATOR_THICKNESS / 2; y = midField;
g.drawLine(SEPARATOR_THICKNESS, BORDER_COLOR, 0, y, w, y); g.drawLine(1, BORDER_COLOR, 0, y, w, y);
y = midField + bottomPlayerPanel.getField().getHeight(); y = midField + bottomPlayerPanel.getField().getHeight();
g.drawLine(1, BORDER_COLOR, 0, y, w, y); g.drawLine(1, BORDER_COLOR, 0, y, w, y);