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

Method updateTiles

outdated/win/Qt3/qt3_win.cpp:1546–1570  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1544}
1545
1546void NetHackQtMapWindow::updateTiles()
1547{
1548 NetHackQtGlyphs& glyphs = qt_settings->glyphs();
1549 int gw = glyphs.width();
1550 int gh = glyphs.height();
1551 // Be exactly the size we want to be - full map...
1552 resize(COLNO*gw,ROWNO*gh);
1553
1554 viewport.verticalScrollBar()->setSteps(gh,gh);
1555 viewport.horizontalScrollBar()->setSteps(gw,gw);
1556 /*
1557 viewport.setMaximumSize(
1558 gw*COLNO + viewport.verticalScrollBar()->width(),
1559 gh*ROWNO + viewport.horizontalScrollBar()->height()
1560 );
1561 */
1562 viewport.updateScrollBars();
1563
1564 change.clear();
1565 change.add(0,0,COLNO,ROWNO);
1566 delete rogue_font; rogue_font = 0;
1567 Display(FALSE);
1568
1569 emit resized();
1570}
1571
1572NetHackQtMapWindow::~NetHackQtMapWindow()
1573{

Callers

nothing calls this directly

Calls 7

verticalScrollBarMethod · 0.80
horizontalScrollBarMethod · 0.80
updateScrollBarsMethod · 0.60
widthMethod · 0.45
heightMethod · 0.45
clearMethod · 0.45
addMethod · 0.45

Tested by

no test coverage detected