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

Method drawWorn

outdated/win/Qt3/qt3_win.cpp:3468–3479  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3466}
3467
3468void NetHackQtInvUsageWindow::drawWorn(QPainter& painter, obj* nhobj, int x, int y, bool canbe)
3469{
3470 short int glyph;
3471 if (nhobj)
3472 glyph=obj_to_glyph(nhobj, rn2_on_display_rng);
3473 else if (canbe)
3474 glyph=cmap_to_glyph(S_room);
3475 else
3476 glyph=cmap_to_glyph(S_stone);
3477
3478 qt_settings->glyphs().drawCell(painter,glyph,x,y);
3479}
3480
3481void NetHackQtInvUsageWindow::paintEvent(QPaintEvent*)
3482{

Callers

nothing calls this directly

Calls 1

drawCellMethod · 0.45

Tested by

no test coverage detected