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

Method drawGlyph

outdated/win/Qt3/qt3_win.cpp:4322–4335  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4320}
4321
4322void NetHackQtGlyphs::drawGlyph(QPainter& painter, int glyph, int x, int y)
4323{
4324 int tile = glyph2tile[glyph];
4325 int px = (tile%tiles_per_row)*width();
4326 int py = tile/tiles_per_row*height();
4327
4328 painter.drawPixmap(
4329 x,
4330 y,
4331 pm,
4332 px,py,
4333 width(),height()
4334 );
4335}
4336void NetHackQtGlyphs::drawCell(QPainter& painter, int glyph, int cellx, int celly)
4337{
4338 drawGlyph(painter,glyph,cellx*width(),celly*height());

Callers 2

setGlyphMethod · 0.45
paintCellMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected