does one frame of ui.
| 611 | |
| 612 | // does one frame of ui. |
| 613 | void DoUIFrame() { |
| 614 | if (Multi_bail_ui_menu) { |
| 615 | UI_frame_result = NEWUIRES_FORCEQUIT; |
| 616 | } else { |
| 617 | if (UI_callback) |
| 618 | (*UI_callback)(); |
| 619 | |
| 620 | if (GetFunctionMode() == MENU_MODE) { |
| 621 | tMusicSeqInfo music_info; |
| 622 | |
| 623 | Sound_system.BeginSoundFrame(false); |
| 624 | |
| 625 | music_info.frametime = UIFrameTime; |
| 626 | music_info.player_dead = false; |
| 627 | music_info.started_level = false; |
| 628 | D3MusicDoFrame(&music_info); |
| 629 | |
| 630 | Sound_system.EndSoundFrame(); |
| 631 | } |
| 632 | |
| 633 | UI_frame_result = ui_DoFrame(); |
| 634 | } |
| 635 | |
| 636 | if (UI_input.printscreen) { |
| 637 | UI_input.printscreen = false; |
| 638 | DoScreenshot(); |
| 639 | } |
| 640 | } |
| 641 | |
| 642 | // does one frame of ui. |
| 643 | void DoUIFrameWithoutInput() { |
no test coverage detected