mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
fixed message box on osx
This commit is contained in:
parent
cebda9790b
commit
d5b1c93598
|
@ -143,6 +143,8 @@ function build(settings)
|
|||
if platform == "macosx" then
|
||||
glfw_platform = "macosx"
|
||||
pa_platform = "mac_osx"
|
||||
settings.linker.frameworks:add("Carbon")
|
||||
settings.linker.frameworks:add("AppKit")
|
||||
else
|
||||
glfw_platform = "x11"
|
||||
pa_platform = "unix"
|
||||
|
|
|
@ -1134,10 +1134,10 @@ void gui_messagebox(const char *title, const char *message)
|
|||
/* END HACK */
|
||||
|
||||
CreateStandardAlert(kAlertStopAlert,
|
||||
CFSTR(title),
|
||||
CFSTR(message),
|
||||
NULL,
|
||||
&theItem);
|
||||
CFStringCreateWithCString(NULL, title, kCFStringEncodingASCII),
|
||||
CFStringCreateWithCString(NULL, message, kCFStringEncodingASCII),
|
||||
NULL,
|
||||
&theItem);
|
||||
|
||||
RunStandardAlert(theItem, NULL, &itemIndex);
|
||||
#elif defined(CONF_FAMILY_UNIX)
|
||||
|
|
Loading…
Reference in a new issue