ui: correct cursor hotspot to 0,0
This has never been correct, but worked because the container is always in the client frame at 0,0
This commit is contained in:
@@ -609,7 +609,7 @@ public class ClientUI
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
final java.awt.Point hotspot = new java.awt.Point(container.getX(), container.getY());
|
final java.awt.Point hotspot = new java.awt.Point(0, 0);
|
||||||
final Cursor cursorAwt = Toolkit.getDefaultToolkit().createCustomCursor(image, hotspot, name);
|
final Cursor cursorAwt = Toolkit.getDefaultToolkit().createCustomCursor(image, hotspot, name);
|
||||||
container.setCursor(cursorAwt);
|
container.setCursor(cursorAwt);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user