int drawX = rect.x / 63 - 1; int drawY = rect.y / 72 - 1;
int drawX = (int)(rect.x / (HEX_WC*scale))-1; int drawY = (int)(rect.y / (HEX_H*scale))-1;
    private void drawHexes(Rectangle rect) {        int drawX = rect.x / 63 - 1;        int drawY = rect.y / 72 - 1;        int drawWidth = rect.width / 63 + 3;        int drawHeight = rect.height / 72 + 3;        // only draw what we came to draw        boardGraph.setClip(rect.x - boardRect.x, rect.y - boardRect.y,                           rect.width, rect.height);        // clear, if we need to        if (rect.x < 21) {            boardGraph.clearRect(rect.x - boardRect.x, rect.y - boardRect.y, 21 - rect.x, rect.height);        }        if (rect.y < 36) {            boardGraph.clearRect(rect.x - boardRect.x, rect.y - boardRect.y, rect.width, 36 - rect.y);        }        if (rect.x > boardSize.width - view.width - 21) {            boardGraph.clearRect(boardRect.width - 21, rect.y - boardRect.y, 21, rect.height);        }        if (rect.y > boardSize.height - view.height - 36) {            boardGraph.clearRect(rect.x - boardRect.x, boardRect.height - 36, rect.width, 36);        }        // draw some hexes        for (int i = 0; i < drawHeight; i++) {            for (int j = 0; j < drawWidth; j++) {                drawHex(new Coords(j + drawX, i + drawY));            }        }    }