Added David Hedbor's Qtopia patches
--HG-- extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40372
This commit is contained in:
parent
4c4f326af1
commit
965965962a
20 changed files with 1613 additions and 25 deletions
24
src/main/linux/SDL_Qtopia_main.cc
Normal file
24
src/main/linux/SDL_Qtopia_main.cc
Normal file
|
@ -0,0 +1,24 @@
|
|||
|
||||
/* Include the SDL main definition header */
|
||||
#include "SDL_main.h"
|
||||
#ifdef main
|
||||
#undef main
|
||||
#endif
|
||||
#ifdef QWS
|
||||
#include <qpe/qpeapplication.h>
|
||||
#include <qapplication.h>
|
||||
#endif
|
||||
|
||||
extern int SDL_main(int argc, char *argv[]);
|
||||
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
#ifdef QWS
|
||||
// This initializes the Qtopia application. It needs to be done here
|
||||
// because it parses command line options.
|
||||
QPEApplication *app = new QPEApplication(argc, argv);
|
||||
QWidget dummy;
|
||||
app->showMainWidget(&dummy);
|
||||
#endif
|
||||
return(SDL_main(argc, argv));
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue