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

Function ghack_worn_display

outdated/win/gnome/gnworn.c:87–103  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

85}
86
87void
88ghack_worn_display(GtkWidget *win, boolean block, gpointer data)
89{
90 int i, j;
91 struct obj *worn_objects[WORN_HEIGHT][WORN_WIDTH] = WORN_OBJECT_LIST;
92
93 for (i = 0; i < WORN_HEIGHT; i++) {
94 for (j = 0; j < WORN_WIDTH; j++) {
95 if (worn_objects[i][j] != last_worn_objects[i][j]) {
96 last_worn_objects[i][j] = worn_objects[i][j];
97 gnome_pixmap_load_imlib(
98 GNOME_PIXMAP(worn_contents[i][j]),
99 image_of_worn_object(worn_objects[i][j]));
100 }
101 }
102 }
103}

Callers

nothing calls this directly

Calls 1

image_of_worn_objectFunction · 0.85

Tested by

no test coverage detected