| 3466 | } |
| 3467 | |
| 3468 | void 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 | |
| 3481 | void NetHackQtInvUsageWindow::paintEvent(QPaintEvent*) |
| 3482 | { |