Enlightenment CVS committal

Author  : barbieri
Project : misc
Module  : rage

Dir     : misc/rage/src/bin


Modified Files:
        main.c 


Log Message:
Add DirectFB support.

===================================================================
RCS file: /cvs/e/misc/rage/src/bin/main.c,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -3 -r1.7 -r1.8
--- main.c      25 Jan 2008 03:35:20 -0000      1.7
+++ main.c      28 May 2008 16:05:59 -0000      1.8
@@ -97,6 +97,8 @@
          mode = 2;
        else if (!strcmp(argv[i], "-xr"))
          mode = 3;
+        else if (!strcmp(argv[1], "-dfb"))
+         mode = 4;
        else if (!strcmp(argv[i], "-fs"))
          fullscreen = 1;
        else
@@ -130,6 +132,8 @@
      ecore_evas = ecore_evas_fb_new(NULL, 0, startw, starth);
    if (mode == 3)
      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 (!ecore_evas)
      {
        printf("ERROR: Cannot create canvas\n");
@@ -257,7 +261,7 @@
 {
    printf("Usage:\n");
    printf("  rage "
-         "[-x11] [-gl] [-fb] [-xr] [-g WxH] [-fs] "
+         "[-x11] [-gl] [-fb] [-dfb] [-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

Reply via email to