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

Method setGlyph

outdated/win/Qt3/qt3_win.cpp:891–902  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

889 }
890
891 void setGlyph(int g)
892 {
893 NetHackQtGlyphs& glyphs = qt_settings->glyphs();
894 int gw = glyphs.width();
895 int gh = glyphs.height();
896 QPixmap pm(gw,gh);
897 QPainter p(&pm);
898 glyphs.drawGlyph(p, g, 0, 0);
899 p.end();
900 setPixmap(0,pm);
901 setHeight(QMAX(pm.height()+1,height()));
902 }
903
904 void paintCell( QPainter *p, const QColorGroup &cg,
905 int column, int width, int alignment )

Callers

nothing calls this directly

Calls 3

widthMethod · 0.45
heightMethod · 0.45
drawGlyphMethod · 0.45

Tested by

no test coverage detected