Misc map editor fixes

This commit is contained in:
Anuken
2025-07-20 19:33:37 -04:00
parent 6cd3a0a096
commit 6e44ff1de1
6 changed files with 84 additions and 39 deletions

View File

@@ -204,7 +204,7 @@ public class MapView extends Element implements GestureListener{
zoom = Mathf.clamp(zoom, 0.2f, 20f);
}
Point2 project(float x, float y){
public Point2 project(float x, float y){
float ratio = 1f / ((float)editor.width() / editor.height());
float size = Math.min(width, height);
float sclwidth = size * zoom;