From e1ed80f07caf2b8a3f99ea0c8dde7b9fb092e807 Mon Sep 17 00:00:00 2001 From: raster Date: Thu, 24 Sep 2009 14:44:05 +0000 Subject: [PATCH] account for padding too for too-big git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/evas@42678 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- src/lib/include/evas_common.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/include/evas_common.h b/src/lib/include/evas_common.h index de12cec..ab321f9 100644 --- a/src/lib/include/evas_common.h +++ b/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 -- 2.7.4