Commit f1924b4f authored by Nico Mack's avatar Nico Mack

Removed commented code

parent 256f362c
......@@ -409,29 +409,12 @@ public class TouchManager implements ActionListener {
// ---------------------------------------------------------------------------
public void paint(Graphics2D canvas) {
// for (Touch touch : this.touches.values()) {
//
// Point position = touch.getPosition();
// if (position == null)
// continue;
//
// position = position.clone().toCoordinates(ScreenCoordinates.class);
//
// AffineTransform translate = AffineTransform.getTranslateInstance(position.x, position.y);
// canvas.setPaint(Color.WHITE);
// canvas.draw(translate.createTransformedShape(cursorShape));
// }
if (lastTouch != null) {
Point position = lastTouch.clone().toCoordinates(ScreenCoordinates.class);
AffineTransform translate = AffineTransform.getTranslateInstance(position.x, position.y);
canvas.setPaint(Color.WHITE);
canvas.draw(translate.createTransformedShape(cursorShape));
}
}
// ---------------------------------------------------------------------------
......
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