| 508 | } |
| 509 | |
| 510 | void NetHackQtMapViewport::Display(bool block) |
| 511 | { |
| 512 | int gW = qt_settings->glyphs().width(), |
| 513 | gH = qt_settings->glyphs().height(); |
| 514 | |
| 515 | for (int i = 0; i < change.clusters(); i++) { |
| 516 | const QRect& chg = change[i]; |
| 517 | repaint(chg.x() * gW, chg.y() * gH, |
| 518 | chg.width() * gW, chg.height() * gH); |
| 519 | } |
| 520 | change.clear(); |
| 521 | |
| 522 | if (block) { |
| 523 | yn_function("Press a key when done viewing", NULL, '\0', TRUE); |
| 524 | } |
| 525 | } |
| 526 | |
| 527 | void NetHackQtMapViewport::CursorTo(int x,int y) |
| 528 | { |
no test coverage detected