///////////////////////////////////////////////////////////////////////// FUNCTIONS call this function to initialize the UI system. pass a surface where all UI will occur
| 206 | // FUNCTIONS |
| 207 | // call this function to initialize the UI system. pass a surface where all UI will occur |
| 208 | void ui_Init(oeApplication *app, tUIInitInfo *init_info) { |
| 209 | // initialize variables |
| 210 | if (UI_app) { |
| 211 | ui_Close(); |
| 212 | } |
| 213 | // clear out input poller. |
| 214 | ui_Flush(); |
| 215 | UI_cursor_bm = -1; |
| 216 | UI_cursor_show = 0; |
| 217 | UI_app = app; |
| 218 | UIWindowList = NULL; |
| 219 | UIWindowTail = NULL; |
| 220 | UITextItem::SetDefaultFont(init_info->window_font); |
| 221 | ui_SetScreenMode(init_info->w, init_info->h); |
| 222 | UI_init = true; |
| 223 | } |
| 224 | // frees ui input cache |
| 225 | void ui_Flush() { |
| 226 | // UI_input.mx = 0; |
no test coverage detected