int drawWidth = view.width / 63 + 3; int drawHeight = view.height / 72 + 3;
int drawWidth = view.width / (int)(HEX_WC*scale) + 3; int drawHeight = view.height / (int)(HEX_H*scale) + 3;
    private void drawMinefields() {        // only update visible hexes        int drawX = view.x / 63 - 1;        int drawY = view.y / 72 - 1;        int drawWidth = view.width / 63 + 3;        int drawHeight = view.height / 72 + 3;        // loop through the hexes        for (int i = 0; i < drawHeight; i++) {            for (int j = 0; j < drawWidth; j++) {                Coords c = new Coords(j + drawX, i + drawY);                Point p = getHexLocation(c);                p.translate(-(view.x), -(view.y));                if (game.board.contains(c)) {                    if (game.containsMinefield(c)) {                        Minefield mf = (Minefield) game.getMinefields(c).elementAt(0);                        backGraph.drawImage(tileManager.getMinefieldSign(), p.x + 13, p.y + 13, this);                        backGraph.setFont(FONT_MINEFIELD_SMALL);                        int nbrMfs = game.getNbrMinefields(c);                        if (nbrMfs > 1) {                            backGraph.setColor(Color.black);                            backGraph.drawString("Multiple", p.x + 20, p.y + 51);                        } else if (nbrMfs == 1) {                            switch (mf.getType()) {                            case (Minefield.TYPE_CONVENTIONAL) :                                backGraph.setColor(Color.black);                                backGraph.drawString("Conventional", p.x + 15, p.y + 51);                                break;                            case (Minefield.TYPE_THUNDER) :                                backGraph.setColor(Color.black);                                backGraph.drawString("Thunder (" + mf.getDamage() + ")", p.x + 15, p.y + 51);                                break;                            case (Minefield.TYPE_THUNDER_INFERNO) :                                backGraph.setColor(Color.black);                                backGraph.drawString("Thunder-Inf (" + mf.getDamage() + ")", p.x + 9, p.y + 51);                                break;                            case (Minefield.TYPE_THUNDER_ACTIVE) :                                backGraph.setColor(Color.black);                                backGraph.drawString("Thunder-Actv (" + mf.getDamage() + ")", p.x + 8, p.y + 51);                                break;                            case (Minefield.TYPE_COMMAND_DETONATED) :                                backGraph.setColor(Color.black);                                backGraph.drawString("Command-", p.x + 20, p.y + 51);                                backGraph.drawString("detonated", p.x + 22, p.y + 60);                                break;                            case (Minefield.TYPE_VIBRABOMB) :                                backGraph.setColor(Color.black);                                backGraph.drawString("Vibrabomb", p.x + 22, p.y + 51);                                backGraph.drawString("(" + mf.getSetting() + ")", p.x + 37, p.y + 60);                                break;                            }                        }                    }                }            }        }    }