mirror of
https://github.com/aseprite/aseprite.git
synced 2025-01-28 18:32:50 +00:00
Win: Use MessageBoxW instead of allegro_message() in she::error_message()
This commit is contained in:
parent
1ff5e82cef
commit
b7dca01532
@ -667,7 +667,13 @@ System* Instance()
|
||||
|
||||
void error_message(const char* msg)
|
||||
{
|
||||
#ifdef WIN32
|
||||
std::wstring wmsg = base::from_utf8(msg);
|
||||
std::wstring title = base::from_utf8(PACKAGE);
|
||||
::MessageBoxW(NULL, wmsg.c_str(), title.c_str(), MB_OK | MB_ICONERROR);
|
||||
#else
|
||||
allegro_message(msg);
|
||||
#endif
|
||||
}
|
||||
|
||||
} // namespace she
|
||||
|
Loading…
x
Reference in New Issue
Block a user