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

Method setGlyph

win/Qt/qt_plsel.cpp:94–105  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

92 }
93
94 void setGlyph(int g, int tileidx)
95 {
96 NetHackQtGlyphs& glyphs = qt_settings->glyphs();
97 int gw = glyphs.width();
98 int gh = glyphs.height();
99 QPixmap pm(gw,gh);
100 QPainter p(&pm);
101 glyphs.drawGlyph(p, g, tileidx, 0, 0, false);
102 p.end();
103 setIcon(QIcon(pm));
104 //RLC setHeight(std::max(pm.height()+1,height()));
105 }
106
107#if 0 //RLC
108 void paintCell( QPainter *p, const QColorGroup &cg,

Callers

nothing calls this directly

Calls 3

widthMethod · 0.45
heightMethod · 0.45
drawGlyphMethod · 0.45

Tested by

no test coverage detected