Create a window of type "type" which can be NHW_MESSAGE (top line) NHW_STATUS (bottom lines) NHW_MAP (main dungeon) NHW_MENU (inventory or other "corner" windows) NHW_TEXT (help/text, full screen paged window) */
| 405 | NHW_TEXT (help/text, full screen paged window) |
| 406 | */ |
| 407 | winid |
| 408 | gnome_create_nhwindow(int type) |
| 409 | { |
| 410 | winid i = 0; |
| 411 | |
| 412 | /* Return the next available winid */ |
| 413 | |
| 414 | for (i = 0; i < MAXWINDOWS; i++) |
| 415 | if (gnome_windowlist[i].win == NULL) |
| 416 | break; |
| 417 | if (i == MAXWINDOWS) |
| 418 | g_error("ERROR: No windows available...\n"); |
| 419 | gnome_create_nhwindow_by_id(type, i); |
| 420 | return i; |
| 421 | } |
| 422 | |
| 423 | void |
| 424 | gnome_create_nhwindow_by_id(int type, winid i) |
no test coverage detected