* ecore_evas: Fix typo preventing live preview to work and add
authorcedric <cedric@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Wed, 18 Mar 2009 17:12:52 +0000 (17:12 +0000)
committercedric <cedric@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Wed, 18 Mar 2009 17:12:52 +0000 (17:12 +0000)
sub_ecore_evas to SDL backend.

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/ecore@39555 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/lib/ecore_evas/ecore_evas_directfb.c
src/lib/ecore_evas/ecore_evas_fb.c
src/lib/ecore_evas/ecore_evas_sdl.c
src/lib/ecore_evas/ecore_evas_win32.c
src/lib/ecore_evas/ecore_evas_wince.c
src/lib/ecore_evas/ecore_evas_x.c

index 9e93ba6..95b68e6 100644 (file)
@@ -33,7 +33,7 @@ _ecore_evas_directfb_render(Ecore_Evas *ee)
    Eina_List *updates, *ll;
    Ecore_Evas *ee2;
 
-#ifdef BUILD_ECORE_EVAS_BUFFER
+#ifdef BUILD_ECORE_EVAS_SOFTWARE_BUFFER
    EINA_LIST_FOREACH(ee->sub_ecore_evas, ll, ee2)
      {
        if (ee2->func.fn_pre_render) ee2->func.fn_pre_render(ee2);
index 15464e7..62a3e74 100644 (file)
@@ -228,7 +228,7 @@ _ecore_evas_idle_enter(void *data __UNUSED__)
             Ecore_Evas *ee2;
 #endif
             if (ee->func.fn_pre_render) ee->func.fn_pre_render(ee);
-#ifdef BUILD_ECORE_EVAS_BUFFER
+#ifdef BUILD_ECORE_EVAS_SOFTWARE_BUFFER
             EINA_LIST_FOREACH(ee->sub_ecore_evas, ll, ee2)
               {
                  if (ee2->func.fn_pre_render) ee2->func.fn_pre_render(ee2);
index c755b66..758c65c 100644 (file)
@@ -129,9 +129,22 @@ _ecore_evas_idle_enter(void *data __UNUSED__)
    for (l = (Ecore_List2 *)ecore_evases; l; l = l->next)
      {
        Ecore_Evas *ee;
+#ifdef BUILD_ECORE_EVAS_SOFTWARE_BUFFER
+       Eina_List *ll;
+       Ecore_Evas *ee2;
+#endif
 
        ee = (Ecore_Evas *)l;
 
+#ifdef BUILD_ECORE_EVAS_SOFTWARE_BUFFER
+       EINA_LIST_FOREACH(ee->sub_ecore_evas, ll, ee2)
+         {
+            if (ee2->func.fn_pre_render) ee2->func.fn_pre_render(ee2);
+            _ecore_evas_buffer_render(ee2);
+            if (ee2->func.fn_post_render) ee2->func.fn_post_render(ee2);
+         }
+#endif
+
        if (ee->func.fn_pre_render) ee->func.fn_pre_render(ee);
 
        if (ee->prop.avoid_damage) _ecore_evas_render(ee);
index d904c72..7c25c66 100644 (file)
@@ -68,12 +68,10 @@ static void
 _ecore_evas_win32_render(Ecore_Evas *ee)
 {
    Eina_List *updates;
-#ifdef BUILD_ECORE_EVAS_BUFFER
+#ifdef BUILD_ECORE_EVAS_SOFTWARE_BUFFER
    Eina_List *ll;
    Ecore_Evas *ee2;
-#endif
 
-#ifdef BUILD_ECORE_EVAS_BUFFER
    EINA_LIST_FOREACH(ee->sub_ecore_evas, ll, ee2)
      {
        if (ee2->func.fn_pre_render) ee2->func.fn_pre_render(ee2);
index 4fc4d24..3e0e0b4 100644 (file)
@@ -64,12 +64,10 @@ static void
 _ecore_evas_wince_render(Ecore_Evas *ee)
 {
    Eina_List *updates = NULL;
-#ifdef BUILD_ECORE_EVAS_BUFFER
+#ifdef BUILD_ECORE_EVAS_SOFTWARE_BUFFER
    Eina_List *ll;
    Ecore_Evas *ee2;
-#endif
 
-#ifdef BUILD_ECORE_EVAS_BUFFER
    EINA_LIST_FOREACH(ee->sub_ecore_evas, ll, ee2)
      {
        if (ee2->func.fn_pre_render) ee2->func.fn_pre_render(ee2);
index 93deafb..dbc6359 100644 (file)
@@ -144,12 +144,10 @@ _ecore_evas_x_render(Ecore_Evas *ee)
    Evas_Rectangle *r;
    Eina_List *updates, *l;
    int rend = 0;
-#ifdef BUILD_ECORE_EVAS_BUFFER
+#ifdef BUILD_ECORE_EVAS_SOFTWARE_BUFFER
    Eina_List *ll;
    Ecore_Evas *ee2;
-#endif
 
-#ifdef BUILD_ECORE_EVAS_BUFFER
    EINA_LIST_FOREACH(ee->sub_ecore_evas, ll, ee2)
      {
        if (ee2->func.fn_pre_render) ee2->func.fn_pre_render(ee2);