Enlightenment CVS committal

Author  : barbieri
Project : e17
Module  : libs/evas

Dir     : e17/libs/evas/src/modules/engines/software_sdl


Modified Files:
        evas_engine.c 


Log Message:
SDL improvements.

Patch by Cedric BAIL (with minor changes).

===================================================================
RCS file: /cvs/e/e17/libs/evas/src/modules/engines/software_sdl/evas_engine.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -3 -r1.4 -r1.5
--- evas_engine.c       14 Aug 2007 12:49:10 -0000      1.4
+++ evas_engine.c       26 Sep 2007 14:00:14 -0000      1.5
@@ -130,7 +130,6 @@
 
    if (re->update_rects)
      free(re->update_rects);
-   memset(re, sizeof (Render_Engine), 0);
    free(re);
 
    evas_common_font_shutdown();
@@ -176,6 +175,8 @@
        exit(-1);
      }
 
+   SDL_FillRect(re->surface, NULL, 0);
+
    /* Destroy the copy */
    evas_cache_engine_image_drop(eim);
 }
@@ -217,8 +218,9 @@
                                                 int *x, int *y, int *w, int *h,
                                                 int *cx, int *cy, int *cw, int 
*ch)
 {
-   Render_Engine*                              re = (Render_Engine*) data;
-   Tilebuf_Rect*                               tb_rect = NULL;
+   Render_Engine* re = (Render_Engine*) data;
+   Tilebuf_Rect*  tb_rect;
+   SDL_Rect rect;
 
    if (re->end)
      {
@@ -246,6 +248,13 @@
        re->end = 1;
      }
 
+   rect.x = *x;
+   rect.y = *y;
+   rect.w = *w;
+   rect.h = *h;
+
+   SDL_FillRect(re->surface, &rect, 0);
+
    /* Return the "fake" surface so it is passed to the drawing routines. */
    return re->rgba_engine_image;
 }
@@ -829,6 +838,8 @@
        fprintf(stderr, "RGBA_Image allocation from SDL failed\n");
         exit(-1);
      }
+
+   SDL_FillRect(re->surface->pixels, NULL, 0);
 
    re->alpha = alpha;
    re->hwsurface = hwsurface;



-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
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