initialize correctly psize, so that the cache is used.
authorcaro <caro@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Wed, 18 Mar 2009 17:05:30 +0000 (17:05 +0000)
committercaro <caro@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Wed, 18 Mar 2009 17:05:30 +0000 (17:05 +0000)
small speed up.

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

src/modules/engines/software_ddraw/evas_ddraw_buffer.c
src/modules/engines/software_ddraw/evas_engine.h

index 870bcb2..7ef9211 100644 (file)
@@ -20,6 +20,7 @@ evas_software_ddraw_output_buffer_new(int   depth,
    ddob->width = width;
    ddob->height = height;
    ddob->pitch = width * depth / 8;
+   ddob->psize = ddob->pitch * height;
 
    if (!ddob->data)
      {
index a692a42..52cc96a 100644 (file)
@@ -82,8 +82,7 @@ struct _DD_Output_Buffer
    int   height;
    int   depth;
    int   pitch;
-/*    int              w, h, bpl; */
-   int              psize;
+   int   psize;
 };