bon, je crois que ce sera tout

This commit is contained in:
DylanVsn
2019-10-19 22:25:39 +02:00
parent 55e8c1ea0f
commit 7d22e586d1
2 changed files with 6 additions and 1 deletions

View File

@ -50,7 +50,7 @@ class ElevatorCanvas extends JPanel {
g.setColor(Color.GRAY);
int nbFloors = elevator.getNbFloors();
for (int i = 0; i < nbFloors; i++) {
int y = i * ((int) DIMENSIONS.getHeight() / (nbFloors - 1));
int y = HEIGHT + i * ((int) (DIMENSIONS.getHeight() - HEIGHT) / (nbFloors - 1));
g.fillRect(0, y-1, WIDTH, 3);
}