fix image dirties with yuv and software rendering

SVN revision: 34272
This commit is contained in:
Carsten Haitzler 2008-04-15 15:20:53 +00:00
parent 1a9cfba889
commit 184bfa989d
1 changed files with 5 additions and 2 deletions

View File

@ -193,8 +193,11 @@ _evas_common_rgba_image_unload(Image_Entry* im)
}
static void
_evas_common_rgba_image_dirty_region(Image_Entry* im, int x, int y, int w, int h)
_evas_common_rgba_image_dirty_region(Image_Entry* ie, int x, int y, int w, int h)
{
RGBA_Image *im = (RGBA_Image *) ie;
im->flags |= RGBA_IMAGE_IS_DIRTY;
}
/* Only called when references > 0. Need to provide a fresh copie of im. */
@ -346,7 +349,7 @@ evas_common_image_alpha_create(int w, int h)
void
evas_common_image_colorspace_normalize(RGBA_Image *im)
{
if ((!im->cs.data) ||
if ((!im->cs.data) ||
((!im->cs.dirty) && (!(im->flags & RGBA_IMAGE_IS_DIRTY)))) return;
switch (im->cache_entry.space)
{