Enlightenment CVS committal Author : barbieri Project : misc Module : rage
Dir : misc/rage/src/bin Modified Files: main.c Log Message: Add SDL support. =================================================================== RCS file: /cvs/e/misc/rage/src/bin/main.c,v retrieving revision 1.8 retrieving revision 1.9 diff -u -3 -r1.8 -r1.9 --- main.c 28 May 2008 16:05:59 -0000 1.8 +++ main.c 28 May 2008 17:28:50 -0000 1.9 @@ -99,6 +99,8 @@ mode = 3; else if (!strcmp(argv[1], "-dfb")) mode = 4; + else if (!strcmp(argv[1], "-sdl")) + mode = 5; else if (!strcmp(argv[i], "-fs")) fullscreen = 1; else @@ -134,6 +136,8 @@ ecore_evas = ecore_evas_xrender_x11_new(NULL, 0, 0, 0, startw, starth); if (mode == 4) ecore_evas = ecore_evas_directfb_new(NULL, 0, 0, 0, startw, starth); + if (mode == 5) + ecore_evas = ecore_evas_sdl_new(NULL, startw, starth, 0, 1, 1, 0); if (!ecore_evas) { printf("ERROR: Cannot create canvas\n"); @@ -261,7 +265,7 @@ { printf("Usage:\n"); printf(" rage " - "[-x11] [-gl] [-fb] [-dfb] [-xr] [-g WxH] [-fs] " + "[-x11] [-gl] [-fb] [-dfb] [-sdl] [-xr] [-g WxH] [-fs] " "[-t theme] [-cf dir]\n" ); exit(-1); ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs