| 592 | // |
| 593 | |
| 594 | int DoUI() { |
| 595 | // this should poll UI_frame_result. |
| 596 | UI_frame_result = -1; |
| 597 | ui_ShowCursor(); |
| 598 | ui_Flush(); |
| 599 | |
| 600 | while (UI_frame_result == -1) { |
| 601 | Descent->defer(); |
| 602 | DoUIFrame(); |
| 603 | rend_Flip(); |
| 604 | } |
| 605 | |
| 606 | ui_HideCursor(); |
| 607 | ui_Flush(); |
| 608 | |
| 609 | return UI_frame_result; |
| 610 | } |
| 611 | |
| 612 | // does one frame of ui. |
| 613 | void DoUIFrame() { |
no test coverage detected