suprot testign xr engine
authorraster <raster>
Mon, 3 Oct 2005 13:53:18 +0000 (13:53 +0000)
committerraster <raster@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Mon, 3 Oct 2005 13:53:18 +0000 (13:53 +0000)
git-svn-id: http://svn.enlightenment.org/svn/e/trunk/e17/libs/emotion@17134 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/bin/emotion_test_main.c

index 2a137ea..2ddd35c 100644 (file)
@@ -87,6 +87,10 @@ main_start(int argc, char **argv)
                {
                  mode = 2;
                }
+             else if (!strcmp(argv[i], "-xr"))
+               {
+                 mode = 3;
+               }
           }
      }
 #if HAVE_ECORE_EVAS_X
@@ -101,6 +105,8 @@ main_start(int argc, char **argv)
    if (mode == 2)
      ecore_evas = ecore_evas_fb_new(NULL, 0, startw, starth);
 #endif
+   if (mode == 3)
+     ecore_evas = ecore_evas_xrender_x11_new(NULL, 0, 0, 0, startw, starth);
    
 #else
    startw = 240;
@@ -836,6 +842,9 @@ main(int argc, char **argv)
        else if (!strcmp(argv[i], "-fb"))
          {
          }
+       else if (!strcmp(argv[i], "-xr"))
+         {
+         }
        else if (!strcmp(argv[i], "-xine"))
          {
              module_filename = "emotion_decoder_xine.so";