initialize correctly psize, so that the cache is used.

small speed up.


SVN revision: 39554
This commit is contained in:
Vincent Torri 2009-03-18 17:05:30 +00:00
parent 08bbf2f99f
commit a11c52735f
2 changed files with 2 additions and 2 deletions

View 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)
{

View File

@ -82,8 +82,7 @@ struct _DD_Output_Buffer
int height;
int depth;
int pitch;
/* int w, h, bpl; */
int psize;
int psize;
};