MCPcopy Create free account
hub / github.com/ddnet/ddnet / MessageBoxTypeToSdlFlags

Function MessageBoxTypeToSdlFlags

src/engine/client/backend_sdl.cpp:831–844  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

829}
830
831static 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
846static std::optional<int> ShowMessageBoxImpl(const IGraphics::CMessageBox &MessageBox, SDL_Window *pWindow)
847{

Callers 1

ShowMessageBoxImplFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected