evas: use the right function with freetype backend.
authorCedric BAIL <cedric@osg.samsung.com>
Tue, 16 Jun 2015 15:22:42 +0000 (17:22 +0200)
committerCedric BAIL <cedric@osg.samsung.com>
Tue, 16 Jun 2015 15:23:05 +0000 (17:23 +0200)
src/modules/evas/engines/software_generic/evas_engine.c

index 62219f6..b272f08 100644 (file)
@@ -3734,7 +3734,16 @@ eng_ector_end(void *data EINA_UNUSED, void *context EINA_UNUSED, void *surface E
      }
    else
      {
-        eo_do(_software_ector, ector_cairo_software_surface_set(NULL, 0, 0));
+        if (use_cairo)
+          {
+             eo_do(_software_ector,
+                   ector_cairo_software_surface_set(NULL, 0, 0));
+          }
+        else
+          {
+             eo_do(_software_ector,
+                   ector_software_surface_set(NULL, 0, 0));
+          }
 
         evas_common_cpu_end_opt();
      }