account for padding too for too-big

SVN revision: 42678
This commit is contained in:
Carsten Haitzler 2009-09-24 14:44:05 +00:00
parent c1b56b9cf1
commit 58fc0273fe
1 changed files with 2 additions and 2 deletions

View File

@ -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