]> pilppa.org Git - familiar-h63xx-build.git/blob - org.handhelds.familiar/packages/python/python-pygame-1.6/qpe.patch
OE tree imported from monotone branch org.openembedded.oz354fam083 at revision 8b12e3...
[familiar-h63xx-build.git] / org.handhelds.familiar / packages / python / python-pygame-1.6 / qpe.patch
1 --- ./src/base.c~qpe.patch      2003-10-16 15:43:22.000000000 +0930
2 +++ ./src/base.c        2004-05-11 02:09:14.000000000 +0930
3 @@ -37,6 +37,12 @@
4  #include<windows.h>
5  extern int SDL_RegisterApp(char*, Uint32, void*);
6  #endif
7 +#ifdef QWS
8 +
9 +int SDL_main(int argc, char *argv[]) { return 0; };
10 +
11 +extern void initQCop(int argc, char *argv[]);
12 +#endif
13  
14  #if defined(macintosh)
15  #if(!defined(__MWERKS__) && !TARGET_API_MAC_CARBON)
16 @@ -691,7 +697,10 @@
17  {
18         PyObject *module, *dict, *apiobj;
19         static void* c_api[PYGAMEAPI_BASE_NUMSLOTS];
20 -
21 +#ifdef QWS
22 +       char *args[] = {"pygame", NULL};
23 +#endif
24 +       
25      /* create the module */
26         module = Py_InitModule3("base", init__builtins__, doc_pygame_MODULE);
27         dict = PyModule_GetDict(module);
28 @@ -722,6 +731,9 @@
29         /*some intiialization*/
30         Py_AtExit(atexit_quit);
31         install_parachute();
32 +#ifdef QWS
33 +       initQCop(1, args);
34 +#endif
35  #ifdef MS_WIN32
36         SDL_RegisterApp("pygame", 0, GetModuleHandle(NULL));
37  #endif