initialize correctly psize, so that the cache is used.
small speed up. SVN revision: 39554
This commit is contained in:
parent
08bbf2f99f
commit
a11c52735f
|
@ -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)
|
||||
{
|
||||
|
|
|
@ -82,7 +82,6 @@ struct _DD_Output_Buffer
|
|||
int height;
|
||||
int depth;
|
||||
int pitch;
|
||||
/* int w, h, bpl; */
|
||||
int psize;
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue