| 829 | } |
| 830 | |
| 831 | static Uint32 MessageBoxTypeToSdlFlags(IGraphics::EMessageBoxType Type) |
| 832 | { |
| 833 | switch(Type) |
| 834 | { |
| 835 | case IGraphics::EMessageBoxType::ERROR: |
| 836 | return SDL_MESSAGEBOX_ERROR; |
| 837 | case IGraphics::EMessageBoxType::WARNING: |
| 838 | return SDL_MESSAGEBOX_WARNING; |
| 839 | case IGraphics::EMessageBoxType::INFO: |
| 840 | return SDL_MESSAGEBOX_INFORMATION; |
| 841 | default: |
| 842 | dbg_assert_failed("Type invalid"); |
| 843 | } |
| 844 | } |
| 845 | |
| 846 | static std::optional<int> ShowMessageBoxImpl(const IGraphics::CMessageBox &MessageBox, SDL_Window *pWindow) |
| 847 | { |
no outgoing calls
no test coverage detected