Fix scaling-related crashes
[lsnes.git] / src / platform / wxwidgets / foreground.cpp
blobd7fcd911f8fbe473e7e1cd6d362e20e1e4f56f5c
1 #ifdef __WXMAC__
2 #include <ApplicationServices/ApplicationServices.h>
3 #endif
5 void bring_app_foreground()
7 #ifdef __WXMAC__
8 //On Mac OS X, make the application foreground application.
9 ProcessSerialNumber PSN;
10 GetCurrentProcess(&PSN);
11 TransformProcessType(&PSN,kProcessTransformToForegroundApplication);
12 #endif