fix fatal error messages

This commit is contained in:
Eduardo Bart
2012-01-06 18:15:41 -02:00
parent f3c0260ea2
commit f41e1e75cd
5 changed files with 11 additions and 9 deletions

View File

@@ -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;

View File

@@ -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);
}

View File

@@ -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);