patches, caching fixes, zone dynamic creation/deletion handling, stuff.

SVN revision: 33127
This commit is contained in:
Carsten Haitzler 2007-12-14 05:57:16 +00:00
parent f30bb5ed4a
commit 0112fdc383
5 changed files with 7 additions and 6 deletions

View File

@ -386,7 +386,7 @@ if test "x$have_ecore_x" = "xyes" -a "x$have_ecore_evas" = "xyes"; then
fi
dnl ecore_evas_x11_gl
want_ecore_evas_x11_gl=no
want_ecore_evas_x11_gl=yes
AC_ARG_ENABLE(ecore-evas-x11-gl,
AC_HELP_STRING(
[--enable-ecore-evas-x11-gl],

View File

@ -497,7 +497,8 @@ eet_open(const char *file, Eet_File_Mode mode)
else
return NULL;
}
else if ((mode == EET_FILE_MODE_READ) && (file_stat.st_size == 0))
else if ((mode == EET_FILE_MODE_READ) &&
(file_stat.st_size < (sizeof(int) * 3)))
{
return NULL;
}

View File

@ -39,7 +39,7 @@ evas_cache_engine_image_init(const Evas_Cache_Engine_Image_Func *cb, Evas_Cache_
new->func = *cb;
new->limit = -1;
new->limit = 0;
new->usage = 0;
new->dirty = NULL;

View File

@ -25,8 +25,9 @@ EAPI void
evas_cache_image_set(Evas_Cache_Image *cache, int limit)
{
assert(cache != NULL);
if (cache->limit == limit) return;
cache->limit = limit;
evas_cache_image_flush(cache);
}
EAPI Evas_Cache_Image *

View File

@ -360,14 +360,13 @@ evas_common_image_set_cache(int size)
if (eci != NULL)
evas_cache_image_set(eci, size);
}
EAPI int
evas_common_image_get_cache(void)
{
return evas_cache_image_get(eci);
}
#define STAT_GAP 2
EAPI RGBA_Image *
evas_common_load_image_from_file(const char *file, const char *key, RGBA_Image_Loadopts *lo)
{