#include "defines.h"
+#ifdef MACOSX
+#include <CoreServices/CoreServices.h>
+void CPSEnableForegroundOperation(ProcessSerialNumber* psn);
+void NSApplicationLoad();
+void SDL_macosx_init(void) {
+ Boolean sameProc;
+ ProcessSerialNumber myProc, frProc;
+ if (GetFrontProcess(&frProc) == noErr)
+ if (GetCurrentProcess(&myProc) == noErr)
+ if (SameProcess(&frProc, &myProc, &sameProc) == noErr && sameProc == 0) {
+ /*
+ NSLog(@"creating bad autorelease pool");
+ [[NSAutoreleasePool alloc] init];
+ */
+ NSApplicationLoad();
+ CPSEnableForegroundOperation(&myProc);
+ }
+}
+void SDL_macosx_quit(void) {
+}
+#endif // MACOSX
+
+
+
+
+
Uint32
sdl_perl_timer_callback ( Uint32 interval, void* param )
{
RETVAL
int
-GFXFilledpieColor ( dst, x, y, rad, start, end, color )
+GFXFilledPieColor ( dst, x, y, rad, start, end, color )
SDL_Surface* dst;
Sint16 x;
Sint16 y;
Sint16 end;
Uint32 color;
CODE:
- RETVAL = filledpieColor( dst, x, y, rad, start, end, color );
+ RETVAL = filledPieColor( dst, x, y, rad, start, end, color );
OUTPUT:
RETVAL
int
-GFXFilledpieRGBA ( dst, x, y, rad, start, end, r, g, b, a )
+GFXFilledPieRGBA ( dst, x, y, rad, start, end, r, g, b, a )
SDL_Surface* dst;
Sint16 x;
Sint16 y;
Uint8 b;
Uint8 a;
CODE:
- RETVAL = filledpieRGBA( dst, x, y, rad, start, end, r, g, b, a );
+ RETVAL = filledPieRGBA( dst, x, y, rad, start, end, r, g, b, a );
OUTPUT:
RETVAL