fix updates being slow when not moving the mouse
This commit is contained in:
parent
c9d9eafa3d
commit
2a87eee0f8
@ -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) {
|
||||
|
Reference in New Issue
Block a user