spacefractal · 53646
int compare(Object& a, Object& b)
template <class T> void SORTARRAY(T& arry, DGPtr foo)
template <class T> int compare_by_foo(T& a, T& b, DGPtr foo){ typedef DGPtr(*pcmp)(T&a, T&b); pcmp cmp; #pragma warning(disable:4312) cmp = (pcmp)(DGPtr*)foo; return cmp(a,b);}
template <class T> int compare_by_foo(T& a, T& b, DGPtr foo){ typedef DGPtr(*pcmp)(T&a, T&b); pcmp cmp; //#pragma warning(disable:4312) cmp = (pcmp)(DGPtr*)foo; int f=cmp(a,b); return f;}
template <class T> int compare_by_foo(T& a, T& b, DGPtr foo){ typedef int(*pcmp)(T&a, T&b); pcmp cmp; #pragma warning(disable:4312) cmp = (pcmp)foo; return cmp(a,b);}
int compare(Object& a, Object& b);
#if defined (APPLE_COREAUDIO)
#endif // APPLE_COREAUDIO
#define TARGET_OS_IPHONE#define IPHONE#define HAVE_OPENGL_ES#define POSIX#define APPLE_COREAUDIO#undef WIN32
#ifdef TARGETIOS#define TARGET_OS_IPHONE#define IPHONE#define HAVE_OPENGL_ES#define POSIX#define APPLE_COREAUDIO#undef WIN32#endif
void iPhoneSETORIENTATION(int orig) { if(orig==0) { [[UIApplication sharedApplication] setStatusBarOrientation:UIInterfaceOrientationPortrait]; if (SYSTEM_VERSION_GREATER_THAN_OR_EQUAL_TO(@"8.0")) { } } if(orig==1) { [[UIApplication sharedApplication] setStatusBarOrientation:UIInterfaceOrientationLandscapeRight]; if (SYSTEM_VERSION_GREATER_THAN_OR_EQUAL_TO(@"8.0")) { } } if(orig==2) { [[UIApplication sharedApplication] setStatusBarOrientation:UIInterfaceOrientationPortraitUpsideDown]; if (SYSTEM_VERSION_GREATER_THAN_OR_EQUAL_TO(@"8.0")) { } } if(orig==3) { [[UIApplication sharedApplication] setStatusBarOrientation:UIInterfaceOrientationLandscapeLeft]; if (SYSTEM_VERSION_GREATER_THAN_OR_EQUAL_TO(@"8.0")) { [[UIDevice currentDevice] setValue:[NSNumber numberWithInteger:UIDeviceOrientationLandscapeRight] forKey:@"orientation"]; } }}
Orientation and rotation fixesAddresses an issue that sometimes prevented rotating back to portrait after having rotated to landscapeImproves performance and stability issues that occurred when rotating the device between portrait and landscapeFixes an issue where device orientation appeared upside down after pulling the iPhone 6 Plus from your pocketResolves an issue that sometimes prevented apps from rotating to correct orientation after switching apps in multitasking