This commit is contained in:
Anuken
2020-08-12 21:24:00 -04:00
parent fb511a4eef
commit 1249eb3b00
6 changed files with 52 additions and 10 deletions

View File

@@ -213,9 +213,9 @@ public class MapView extends Element implements GestureListener{
y = (y - getHeight() / 2 + sclheight / 2 - offsety * zoom) / sclheight * editor.height();
if(editor.drawBlock.size % 2 == 0 && tool != EditorTool.eraser){
return Tmp.g1.set((int)(x - 0.5f), (int)(y - 0.5f));
return Tmp.p1.set((int)(x - 0.5f), (int)(y - 0.5f));
}else{
return Tmp.g1.set((int)x, (int)y);
return Tmp.p1.set((int)x, (int)y);
}
}