fix zoom detection issue in old OSX versions

This commit is contained in:
2019-08-15 22:52:14 +02:00
parent 56f4bc467d
commit bb7d681dc3
4 changed files with 12 additions and 2 deletions

View File

@@ -41,6 +41,13 @@ bool App::clipboard_set_text(const std::string& s)
#endif
}
void App::stacktrace()
{
#if __OSX__
NSString* callstack = [[NSThread callStackSymbols] componentsJoinedByString:@"\n"];
LOG("callstack:\n%s", [callstack cStringUsingEncoding:NSUTF8StringEncoding]);
#endif
}
void App::crash_test()
{