mirror of
https://github.com/edubart/otclient.git
synced 2025-12-18 06:37:12 +01:00
fix fatal error messages
This commit is contained in:
@@ -43,6 +43,7 @@ public:
|
||||
virtual void poll() = 0;
|
||||
virtual void swapBuffers() = 0;
|
||||
virtual void showMouse() = 0;
|
||||
virtual void displayFatalError(const std::string& message) { }
|
||||
virtual void hideMouse() = 0;
|
||||
|
||||
virtual void setTitle(const std::string& title) = 0;
|
||||
|
||||
@@ -618,3 +618,7 @@ std::string WIN32Window::getPlatformType()
|
||||
return "WIN32-WGL";
|
||||
}
|
||||
|
||||
void WIN32Window::displayFatalError(const std::string& message)
|
||||
{
|
||||
MessageBoxA(m_window, message.c_str(), "FATAL ERROR", MB_OK | MB_ICONERROR);
|
||||
}
|
||||
|
||||
@@ -58,6 +58,7 @@ public:
|
||||
void swapBuffers();
|
||||
void showMouse();
|
||||
void hideMouse();
|
||||
void displayFatalError(const std::string& message);
|
||||
|
||||
void setTitle(const std::string& title);
|
||||
void setMinimumSize(const Size& minimumSize);
|
||||
|
||||
Reference in New Issue
Block a user