only init once

SVN revision: 3472
This commit is contained in:
Carsten Haitzler 2000-09-15 14:40:26 +00:00
parent 2c9afe3d84
commit f0563a7bfa
2 changed files with 18 additions and 6 deletions

View File

@ -794,9 +794,15 @@ __evas_image_get_colormap(Display *disp, int screen)
void
__evas_image_init(Display *disp, int screen)
{
imlib_set_font_cache_size(1024 * 1024);
imlib_set_cache_size(8 * 1024 * 1024);
imlib_set_color_usage(128);
static int initted = 0;
if (!initted)
{
imlib_set_font_cache_size(1024 * 1024);
imlib_set_cache_size(8 * 1024 * 1024);
imlib_set_color_usage(128);
initted = 1;
}
}
void

View File

@ -717,9 +717,15 @@ __evas_imlib_get_colormap(Display *disp, int screen)
void
__evas_imlib_init(Display *disp, int screen)
{
imlib_set_font_cache_size(1024 * 1024);
imlib_set_cache_size(8 * 1024 * 1024);
imlib_set_color_usage(128);
static int initted = 0;
if (!initted)
{
imlib_set_font_cache_size(1024 * 1024);
imlib_set_cache_size(8 * 1024 * 1024);
imlib_set_color_usage(128);
initted = 1;
}
}
void