summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Hacohen <tom@stosb.com>2013-09-26 16:57:37 +0100
committerTom Hacohen <tom@stosb.com>2013-09-26 16:57:37 +0100
commit933998b93da3967e07729061eee3cb79852dd864 (patch)
treeeea4a19e053d0e634452c690d70266849ca5426e
parent1845ffe5b0bef83d67c5173a0a23dbc49bc68481 (diff)
Evas image: Moved a variable decl into the ifdef.
This variable is only ever used in the ifdef so there it should reside.
-rw-r--r--src/lib/evas/common/evas_image_main.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/lib/evas/common/evas_image_main.c b/src/lib/evas/common/evas_image_main.c
index 82f3d8a569..6ab9eb4c43 100644
--- a/src/lib/evas/common/evas_image_main.c
+++ b/src/lib/evas/common/evas_image_main.c
@@ -439,15 +439,12 @@ static int
439_evas_common_rgba_image_surface_alloc(Image_Entry *ie, unsigned int w, unsigned int h) 439_evas_common_rgba_image_surface_alloc(Image_Entry *ie, unsigned int w, unsigned int h)
440{ 440{
441 RGBA_Image *im = (RGBA_Image *) ie; 441 RGBA_Image *im = (RGBA_Image *) ie;
442 size_t siz = 0;
443 442
444#ifdef EVAS_CSERVE2 443#ifdef EVAS_CSERVE2
445 if (ie->data1) return 0; 444 if (ie->data1) return 0;
446#endif 445#endif
447 if (im->image.no_free) return 0; 446 if (im->image.no_free) return 0;
448 447
449 siz = _evas_common_rgba_image_surface_size(w, h, (im->flags & RGBA_IMAGE_ALPHA_ONLY));
450
451 if (im->image.data) 448 if (im->image.data)
452 { 449 {
453 _evas_common_rgba_image_surface_munmap(im->image.data, 450 _evas_common_rgba_image_surface_munmap(im->image.data,
@@ -465,6 +462,8 @@ _evas_common_rgba_image_surface_alloc(Image_Entry *ie, unsigned int w, unsigned
465 surfs = eina_list_append(surfs, ie); 462 surfs = eina_list_append(surfs, ie);
466#endif 463#endif
467#ifdef HAVE_VALGRIND 464#ifdef HAVE_VALGRIND
465 size_t siz = 0;
466 siz = _evas_common_rgba_image_surface_size(w, h, (im->flags & RGBA_IMAGE_ALPHA_ONLY));
468# ifdef VALGRIND_MAKE_READABLE 467# ifdef VALGRIND_MAKE_READABLE
469 VALGRIND_MAKE_READABLE(im->image.data, siz); 468 VALGRIND_MAKE_READABLE(im->image.data, siz);
470# else 469# else