2002-05-19 20:06:01 +00:00
|
|
|
|
|
|
|
/* Include the SDL main definition header */
|
|
|
|
#include "SDL_main.h"
|
|
|
|
#ifdef main
|
|
|
|
#undef main
|
|
|
|
#endif
|
|
|
|
#ifdef QWS
|
|
|
|
#include <qpe/qpeapplication.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.
|
2002-05-28 19:24:11 +00:00
|
|
|
QPEApplication app(argc, argv);
|
2002-05-19 20:06:01 +00:00
|
|
|
QWidget dummy;
|
2002-05-28 19:24:11 +00:00
|
|
|
app.showMainWidget(&dummy);
|
2002-05-19 20:06:01 +00:00
|
|
|
#endif
|
|
|
|
return(SDL_main(argc, argv));
|
|
|
|
}
|