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

Function stat_resized

win/X11/winstat.c:1117–1138  ·  view source on GitHub ↗

callback to deal with the game window being resized */

Source from the content-addressed store, hash-verified

1115
1116/* callback to deal with the game window being resized */
1117static void
1118stat_resized(Widget w, XtPointer call_data, XtPointer client_data)
1119{
1120 Arg args[4];
1121 Cardinal num_args;
1122 struct xwindow *wp = xw_status_win;
1123
1124 nhUse(call_data);
1125 nhUse(client_data);
1126
1127 if (w == wp->w) {
1128 num_args = 0;
1129 XtSetArg(args[num_args], XtNwidth, &wp->pixel_width); num_args++;
1130 XtSetArg(args[num_args], XtNwidth, &wp->pixel_height); num_args++;
1131 XtGetValues(w, args, num_args);
1132 } else {
1133 impossible("Status Window resized, but of what widget?");
1134 }
1135
1136 /* tell core to call us back for a full status update */
1137 disp.botlx = TRUE;
1138}
1139
1140void
1141destroy_status_window(struct xwindow *wp)

Callers

nothing calls this directly

Calls 1

impossibleFunction · 0.50

Tested by

no test coverage detected