callback to deal with the game window being resized */
| 1115 | |
| 1116 | /* callback to deal with the game window being resized */ |
| 1117 | static void |
| 1118 | stat_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 | |
| 1140 | void |
| 1141 | destroy_status_window(struct xwindow *wp) |
nothing calls this directly
no test coverage detected