Evas: (wayland): Use Seb's strncmp statement (easier to read, cleaner,
authordevilhorns <devilhorns@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Fri, 25 May 2012 23:51:21 +0000 (23:51 +0000)
committerdevilhorns <devilhorns@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Fri, 25 May 2012 23:51:21 +0000 (23:51 +0000)
simpler, and possibly faster).

Thanks Seb ;)

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

src/lib/canvas/evas_render.c

index 80825aa..ae59580 100644 (file)
@@ -1383,8 +1383,7 @@ evas_render_updates_internal(Evas *e,
     * NB: This is for the wayland engine(s). If we do not do this, then 
     * objects will draw outside the viewport and potentially onto the frame 
     * itself */
-   if ((!strcmp(e->engine.module->definition->name, "wayland_shm")) ||
-       (!strcmp(e->engine.module->definition->name, "wayland_egl")))
+   if (!strncmp(e->engine.module->definition->name, "wayland", 7))
      {
         Eina_Rectangle clip_rect;