From 58fc0273fe1c4ebff1a1d99ef7fcc146c7d0a33c Mon Sep 17 00:00:00 2001 From: Carsten Haitzler Date: Thu, 24 Sep 2009 14:44:05 +0000 Subject: [PATCH] account for padding too for too-big SVN revision: 42678 --- legacy/evas/src/lib/include/evas_common.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/legacy/evas/src/lib/include/evas_common.h b/legacy/evas/src/lib/include/evas_common.h index de12cec3fe..ab321f968f 100644 --- a/legacy/evas/src/lib/include/evas_common.h +++ b/legacy/evas/src/lib/include/evas_common.h @@ -229,8 +229,8 @@ void *alloca (size_t); #define IMG_MAX_SIZE 65000 #define IMG_TOO_BIG(w, h) \ - ((((unsigned long long)w) * ((unsigned long long)h)) > \ - (1ULL << (29 * (sizeof(void *) / 4)))) + ((((unsigned long long)w) * ((unsigned long long)h)) >= \ + ((1ULL << (29 * (sizeof(void *) / 4))) - 2048)) #ifdef BUILD_SMALL_DITHER_MASK # define DM_TABLE _evas_dither_44