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

Method ClipAround

win/Qt/qt_map.cpp:654–662  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

652}
653
654void 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
664void NetHackQtMapWindow2::PrintGlyph(int x,int y,
665 const glyph_info *glyphinfo,

Callers 1

qt_cliparound_windowMethod · 0.45

Calls 2

widthMethod · 0.45
heightMethod · 0.45

Tested by

no test coverage detected