600601602603604605606607608609610
currentBrush.startPaint(currentMap, tile.x, tile.y, mouseButton, currentLayer); } case PS_ERASE: case PS_POUR: paintEdit = new MapLayerEdit(layer, createLayerCopy(layer), null); break; default: } }
107810791080108110821083108410851086
Rectangle bounds = new Rectangle(area.x, area.y, area.width + 1, area.height + 1); after = new TileLayer(bounds); after.copyFrom(layer); MapLayerEdit mle = new MapLayerEdit(layer, before, after); mle.setPresentationName(TOOL_FILL); addEdit(mle); }