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

Function image_of_worn_object

outdated/win/gnome/gnworn.c:71–85  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

69}
70
71GdkImlibImage *
72image_of_worn_object(struct obj *o)
73{
74 int glyph;
75 GdkImlibImage *im;
76
77 if (o)
78 glyph = obj_to_glyph(o, rn2_on_display_rng);
79 else
80 glyph = cmap_to_glyph(S_stone);
81
82 im = ghack_image_from_glyph(glyph, FALSE);
83
84 return im;
85}
86
87void
88ghack_worn_display(GtkWidget *win, boolean block, gpointer data)

Callers 2

ghack_init_worn_windowFunction · 0.85
ghack_worn_displayFunction · 0.85

Calls 1

ghack_image_from_glyphFunction · 0.85

Tested by

no test coverage detected