Commit 3217bf04 authored by Nico Mack's avatar Nico Mack

Minor code change in paint method

parent 5670c288
......@@ -440,11 +440,10 @@ public class CalibrationScreen extends JPanel implements KeyListener {
}
if (!this.messagePane.isVisible()) {
Rectangle bounds = this.getBounds();
if (this.system == CoordinateSystem.CAMERA) {
Rectangle bounds = this.getBounds();
canvas.drawImage(cameraIcon, (bounds.width - cameraIcon.getWidth()) / 2, (bounds.height - cameraIcon.getHeight()) / 2, null);
} else if (this.system == CoordinateSystem.SCREEN) {
Rectangle bounds = this.getBounds();
canvas.drawImage(screenIcon, (bounds.width - screenIcon.getWidth()) / 2, (bounds.height - screenIcon.getHeight()) / 2, null);
}
} else {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment