fix updates being slow when not moving the mouse

This commit is contained in:
cyril-colin 2019-10-15 18:43:29 +02:00
parent c9d9eafa3d
commit 2a87eee0f8

View File

@ -47,6 +47,7 @@ class ElevatorCanvas extends JPanel {
g.setColor(Color.BLACK);
}
g.fillRect(0, y, WIDTH, HEIGHT);
Toolkit.getDefaultToolkit().sync();
}
public void setElevatorY(int y) {