mirror of
https://github.com/AquariaOSE/Aquaria.git
synced 2024-11-15 22:19:07 +00:00
commit
61a5f5c35c
2 changed files with 4 additions and 4 deletions
|
@ -11,10 +11,10 @@
|
||||||
|
|
||||||
void cocoaMessageBox(const std::string &title, const std::string &msg)
|
void cocoaMessageBox(const std::string &title, const std::string &msg)
|
||||||
{
|
{
|
||||||
|
@autoreleasepool {
|
||||||
NSString *nstitle = [NSString stringWithUTF8String:title.c_str()];
|
NSString *nstitle = [NSString stringWithUTF8String:title.c_str()];
|
||||||
NSString *nsmsg = [NSString stringWithUTF8String:msg.c_str()];
|
NSString *nsmsg = [NSString stringWithUTF8String:msg.c_str()];
|
||||||
NSRunAlertPanel(nstitle, nsmsg, @"OK", nil, nil);
|
NSRunAlertPanel(nstitle, nsmsg, nil, nil, nil);
|
||||||
[nsmsg release];
|
}
|
||||||
[nstitle release];
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -3558,7 +3558,7 @@ void Core::pollEvents()
|
||||||
case SDL_KEYDOWN:
|
case SDL_KEYDOWN:
|
||||||
{
|
{
|
||||||
#if __APPLE__
|
#if __APPLE__
|
||||||
if ((event.key.keysym.sym == SDLK_q) && (event.key.keysym.mod & KMOD_META))
|
if ((event.key.keysym.sym == SDLK_q) && (event.key.keysym.mod & KMOD_GUI))
|
||||||
#else
|
#else
|
||||||
if ((event.key.keysym.sym == SDLK_F4) && (event.key.keysym.mod & KMOD_ALT))
|
if ((event.key.keysym.sym == SDLK_F4) && (event.key.keysym.mod & KMOD_ALT))
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in a new issue