From ccc14a038b3484197c4180bc452d25a2482cc443 Mon Sep 17 00:00:00 2001 From: nhmall Date: Tue, 29 Jan 2019 17:21:55 -0500 Subject: [PATCH] more window port code uses of obj_to_glyph() --- win/Qt/qt_win.cpp | 2 +- win/gnome/gnworn.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/win/Qt/qt_win.cpp b/win/Qt/qt_win.cpp index bd281d3c5..28a68207a 100644 --- a/win/Qt/qt_win.cpp +++ b/win/Qt/qt_win.cpp @@ -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 diff --git a/win/gnome/gnworn.c b/win/gnome/gnworn.c index 04c4e4772..4d7303d15 100644 --- a/win/gnome/gnworn.c +++ b/win/gnome/gnworn.c @@ -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);