Skip to content

Commit 3c31cd6

Browse files
committed
Fixed Menu Aligment
1 parent d29095d commit 3c31cd6

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/com/redomar/game/menu/Menu.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ private void render() {
227227
g.setColor(Color.BLACK);
228228
g.fillRect(0, 0, frame.getWidth(), frame.getHeight());
229229
g.setColor(new Color(0xFF660000));
230-
g.fillRect(10, 10, (WIDTH * 3) - 10, (HEIGHT * 3) - 10);
230+
g.fillRect(0, 0, WIDTH * 3, HEIGHT * 3);
231231
g.setColor(new Color(0xFFFF9900));
232232
g.setFont(font.getArial());
233233
if (isGameOver()) {
@@ -238,10 +238,10 @@ private void render() {
238238
: "Player";
239239
g.drawString("Welcome to JavaGame " + name, 35, 30);
240240
}
241-
g.drawLine(10, (HEIGHT * 3), 10, 10);
242-
g.drawLine(10, 10, (WIDTH * 3), 10);
243-
g.drawLine((WIDTH * 3), 10, (WIDTH * 3), (HEIGHT * 3));
244-
g.drawLine(10, (HEIGHT * 3), (WIDTH * 3), (HEIGHT * 3));
241+
g.drawLine(0, HEIGHT * 3, 0, 0);
242+
g.drawLine(0, 0, (WIDTH * 3), 0);
243+
g.drawLine((WIDTH * 3), 0, (WIDTH * 3), (HEIGHT * 3));
244+
g.drawLine(0, (HEIGHT * 3), (WIDTH * 3), (HEIGHT * 3));
245245
// (LEFT,DOWN,WIDTH,HEIGHT)
246246
paintButtons(isSelectedStart(), isSelectedExit(), g);
247247
bs.show();

0 commit comments

Comments
 (0)