]> granicus.if.org Git - nethack/commitdiff
more window port code uses of obj_to_glyph()
authornhmall <nhmall@nethack.org>
Tue, 29 Jan 2019 22:21:55 +0000 (17:21 -0500)
committernhmall <nhmall@nethack.org>
Tue, 29 Jan 2019 22:21:55 +0000 (17:21 -0500)
win/Qt/qt_win.cpp
win/gnome/gnworn.c

index bd281d3c58508f47caddb05f88f01408ec644c5b..28a68207ad0e32894c21e7b440bedf5a3cb52cb6 100644 (file)
@@ -3461,7 +3461,7 @@ void NetHackQtInvUsageWindow::drawWorn(QPainter& painter, obj* nhobj, int x, int
 {
     short int glyph;
     if (nhobj)
-       glyph=obj_to_glyph(nhobj);
+       glyph=obj_to_glyph(nhobj, rn2_on_display_rng);
     else if (canbe)
        glyph=cmap_to_glyph(S_room);
     else
index 04c4e4772e2832439ee9a5b96e0b106935556a30..4d7303d1587a81c8e88a8499eb77f471870637d8 100644 (file)
@@ -75,7 +75,7 @@ image_of_worn_object(struct obj *o)
     GdkImlibImage *im;
 
     if (o)
-        glyph = obj_to_glyph(o);
+        glyph = obj_to_glyph(o, rn2_on_display_rng);
     else
         glyph = cmap_to_glyph(S_stone);