| 652 | } |
| 653 | |
| 654 | void NetHackQtMapWindow2::ClipAround(int x,int y) |
| 655 | { |
| 656 | // Convert to pixel of center of tile |
| 657 | x=x*qt_settings->glyphs().width()+qt_settings->glyphs().width()/2; |
| 658 | y=y*qt_settings->glyphs().height()+qt_settings->glyphs().height()/2; |
| 659 | |
| 660 | // Then ensure that pixel is visible |
| 661 | ensureVisible(x,y,width()*0.45,height()*0.45); |
| 662 | } |
| 663 | |
| 664 | void NetHackQtMapWindow2::PrintGlyph(int x,int y, |
| 665 | const glyph_info *glyphinfo, |
no test coverage detected