25 lines
529 B
C++
25 lines
529 B
C++
|
|
||
|
/* 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));
|
||
|
}
|