if (tile != null) {
if (layer instanceof SelectionLayer) {
if (shouldPaintBrushTile())
RenderingUtil.drawTile(gc, tile, gx, gy, zoom);
Transform transform = new Transform(getDisplay());
transform.translate(gx,gy);
gc.setTransform(transform);
gc.setAlpha(SEL_HOVER_ALPHA);
gc.fillPolygon(Converter.getPolygonArray(gridPoly));
gc.setAlpha(OPAQUE);
gc.setTransform(null);