| 448 | } |
| 449 | |
| 450 | void NetHackQtMapViewport::mousePressEvent(QMouseEvent* event) |
| 451 | { |
| 452 | clicksink.Put(event->pos().x() / qt_settings->glyphs().width(), |
| 453 | event->pos().y() / qt_settings->glyphs().height(), |
| 454 | (event->button() == Qt::LeftButton) ? CLICK_1 : CLICK_2); |
| 455 | qApp->exit(); |
| 456 | } |
| 457 | |
| 458 | void NetHackQtMapViewport::updateTiles() |
| 459 | { |