MCPcopy Create free account
hub / github.com/NetHack/NetHack / Display

Method Display

win/Qt/qt_map.cpp:510–525  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

508}
509
510void 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
527void NetHackQtMapViewport::CursorTo(int x,int y)
528{

Callers 2

qt_display_nhwindowMethod · 0.45
qt_display_fileMethod · 0.45

Calls 5

yn_functionFunction · 0.85
widthMethod · 0.45
heightMethod · 0.45
clustersMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected