removes a window from ui list.if topmost, the next topmost window has focus.
| 369 | } |
| 370 | // removes a window from ui list.if topmost, the next topmost window has focus. |
| 371 | void ui_RemoveAllWindows() { |
| 372 | int count = 0; |
| 373 | while (UIWindowTail) { |
| 374 | ui_RemoveWindow(UIWindowTail->wnd); |
| 375 | count++; |
| 376 | ASSERT(count < 50); |
| 377 | } |
| 378 | if (count) { |
| 379 | mprintf(0, "%d UI windows left open. Closed them!\n", count); |
| 380 | } |
| 381 | } |
| 382 | // removes a window from ui list. |
| 383 | void ui_RemoveWindow(UIWindow *wnd) { |
| 384 | tUIWindowNode *node = UIWindowList; |
no test coverage detected