| 839 | //============================================================================= |
| 840 | |
| 841 | void M_Drawer (void) |
| 842 | { |
| 843 | PalEntry fade = 0; |
| 844 | |
| 845 | if (CurrentMenu != nullptr && menuactive != MENU_Off) |
| 846 | { |
| 847 | if (!CurrentMenu->DontBlur) screen->BlurScene(menuBlurAmount); |
| 848 | if (!CurrentMenu->DontDim) |
| 849 | { |
| 850 | if (sysCallbacks.MenuDim) sysCallbacks.MenuDim(); |
| 851 | } |
| 852 | bool going = false; |
| 853 | if (transition.previous) |
| 854 | { |
| 855 | going = transition.Draw(); |
| 856 | if (!going) |
| 857 | { |
| 858 | if (transition.dir == -1) delete transition.previous; |
| 859 | transition.previous = nullptr; |
| 860 | transition.current = nullptr; |
| 861 | } |
| 862 | } |
| 863 | if (!going) |
| 864 | { |
| 865 | CurrentMenu->CallDrawer(); |
| 866 | } |
| 867 | } |
| 868 | } |
| 869 | |
| 870 | |
| 871 | //============================================================================= |
no test coverage detected