| 1544 | } |
| 1545 | |
| 1546 | void 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 | |
| 1572 | NetHackQtMapWindow::~NetHackQtMapWindow() |
| 1573 | { |
nothing calls this directly
no test coverage detected