diff options
author | Michael Lauer <mickey@vanille-media.de> | 2005-10-11 20:50:06 +0000 |
---|---|---|
committer | OpenEmbedded Project <openembedded-devel@lists.openembedded.org> | 2005-10-11 20:50:06 +0000 |
commit | b3b8929c730b91d68f4a90dc5305c504bcd11bd4 (patch) | |
tree | 28831bb0a9c6d9790f3067e3149c180b1b877768 /packages/python/python-pygame-1.7.1/qpe.patch | |
parent | e48bde5b27f910fc432e55fbb5c19eea678272fa (diff) |
add python-pygame 1.7.1, closes bug #387
Diffstat (limited to 'packages/python/python-pygame-1.7.1/qpe.patch')
-rw-r--r-- | packages/python/python-pygame-1.7.1/qpe.patch | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/packages/python/python-pygame-1.7.1/qpe.patch b/packages/python/python-pygame-1.7.1/qpe.patch new file mode 100644 index 0000000000..b4d3c01a2f --- /dev/null +++ b/packages/python/python-pygame-1.7.1/qpe.patch @@ -0,0 +1,37 @@ +--- ./src/base.c~qpe.patch 2003-10-16 15:43:22.000000000 +0930 ++++ ./src/base.c 2004-05-11 02:09:14.000000000 +0930 +@@ -37,6 +37,12 @@ + #include<windows.h> + extern int SDL_RegisterApp(char*, Uint32, void*); + #endif ++#ifdef QWS ++ ++int SDL_main(int argc, char *argv[]) { return 0; }; ++ ++extern void initQCop(int argc, char *argv[]); ++#endif + + #if defined(macintosh) + #if(!defined(__MWERKS__) && !TARGET_API_MAC_CARBON) +@@ -691,7 +697,10 @@ + { + PyObject *module, *dict, *apiobj; + static void* c_api[PYGAMEAPI_BASE_NUMSLOTS]; +- ++#ifdef QWS ++ char *args[] = {"pygame", NULL}; ++#endif ++ + /* create the module */ + module = Py_InitModule3("base", init__builtins__, doc_pygame_MODULE); + dict = PyModule_GetDict(module); +@@ -722,6 +731,9 @@ + /*some intiialization*/ + Py_AtExit(atexit_quit); + install_parachute(); ++#ifdef QWS ++ initQCop(1, args); ++#endif + #ifdef MS_WIN32 + SDL_RegisterApp("pygame", 0, GetModuleHandle(NULL)); + #endif |