Use directly Image_Entry when possible.
SVN revision: 34792
This commit is contained in:
parent
346b2c922d
commit
7711f12d8e
|
@ -332,14 +332,14 @@ eng_gradient_draw(void *data, void *context, void *surface, void *gradient, int
|
||||||
static int
|
static int
|
||||||
eng_image_alpha_get(void *data, void *image)
|
eng_image_alpha_get(void *data, void *image)
|
||||||
{
|
{
|
||||||
RGBA_Image *im;
|
Image_Entry *im;
|
||||||
|
|
||||||
if (!image) return 1;
|
if (!image) return 1;
|
||||||
im = image;
|
im = image;
|
||||||
switch (im->cache_entry.space)
|
switch (im->space)
|
||||||
{
|
{
|
||||||
case EVAS_COLORSPACE_ARGB8888:
|
case EVAS_COLORSPACE_ARGB8888:
|
||||||
if (im->cache_entry.flags.alpha) return 1;
|
if (im->flags.alpha) return 1;
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
@ -349,11 +349,11 @@ eng_image_alpha_get(void *data, void *image)
|
||||||
static int
|
static int
|
||||||
eng_image_colorspace_get(void *data, void *image)
|
eng_image_colorspace_get(void *data, void *image)
|
||||||
{
|
{
|
||||||
RGBA_Image *im;
|
Image_Entry *im;
|
||||||
|
|
||||||
if (!image) return EVAS_COLORSPACE_ARGB8888;
|
if (!image) return EVAS_COLORSPACE_ARGB8888;
|
||||||
im = image;
|
im = image;
|
||||||
return im->cache_entry.space;
|
return im->space;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void *
|
static void *
|
||||||
|
@ -411,11 +411,11 @@ eng_image_format_get(void *data, void *image)
|
||||||
static void
|
static void
|
||||||
eng_image_colorspace_set(void *data, void *image, int cspace)
|
eng_image_colorspace_set(void *data, void *image, int cspace)
|
||||||
{
|
{
|
||||||
RGBA_Image *im;
|
Image_Entry *im;
|
||||||
|
|
||||||
if (!image) return;
|
if (!image) return;
|
||||||
im = image;
|
im = image;
|
||||||
evas_cache_image_colorspace(&im->cache_entry, cspace);
|
evas_cache_image_colorspace(im, cspace);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
@ -457,17 +457,17 @@ eng_image_free(void *data, void *image)
|
||||||
static void
|
static void
|
||||||
eng_image_size_get(void *data, void *image, int *w, int *h)
|
eng_image_size_get(void *data, void *image, int *w, int *h)
|
||||||
{
|
{
|
||||||
RGBA_Image *im;
|
Image_Entry *im;
|
||||||
|
|
||||||
im = image;
|
im = image;
|
||||||
if (w) *w = im->cache_entry.w;
|
if (w) *w = im->w;
|
||||||
if (h) *h = im->cache_entry.h;
|
if (h) *h = im->h;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void *
|
static void *
|
||||||
eng_image_size_set(void *data, void *image, int w, int h)
|
eng_image_size_set(void *data, void *image, int w, int h)
|
||||||
{
|
{
|
||||||
RGBA_Image *im;
|
Image_Entry *im;
|
||||||
|
|
||||||
im = image;
|
im = image;
|
||||||
return evas_cache_image_size_set(image, w, h);
|
return evas_cache_image_size_set(image, w, h);
|
||||||
|
@ -476,11 +476,10 @@ eng_image_size_set(void *data, void *image, int w, int h)
|
||||||
static void *
|
static void *
|
||||||
eng_image_dirty_region(void *data, void *image, int x, int y, int w, int h)
|
eng_image_dirty_region(void *data, void *image, int x, int y, int w, int h)
|
||||||
{
|
{
|
||||||
RGBA_Image* im = image;
|
Image_Entry *im = image;
|
||||||
|
|
||||||
if (!image) return NULL;
|
if (!image) return NULL;
|
||||||
im = (RGBA_Image *) evas_cache_image_dirty(&im->cache_entry, x, y, w, h);
|
return evas_cache_image_dirty(im, x, y, w, h);
|
||||||
return im;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void *
|
static void *
|
||||||
|
|
Loading…
Reference in New Issue