Wed Jul 12 22:35:34 PDT 2000 Michael Jennings <mej@eterm.org>
Added a --cache option (and the config file attribute "cache") to facilitate changing the Imlib2 cache size. SVN revision: 2917
This commit is contained in:
parent
49b05abd47
commit
9d19817dfa
|
@ -3815,3 +3815,9 @@ Mon Jul 10 20:01:53 PDT 2000 Michael Jennings <mej@eterm.org>
|
|||
We no longer care about gravity. This should help Sawfish users.
|
||||
|
||||
-------------------------------------------------------------------------------
|
||||
Wed Jul 12 22:35:34 PDT 2000 Michael Jennings <mej@eterm.org>
|
||||
|
||||
Added a --cache option (and the config file attribute "cache") to
|
||||
facilitate changing the Imlib2 cache size.
|
||||
|
||||
-------------------------------------------------------------------------------
|
||||
|
|
|
@ -148,6 +148,7 @@ char *rs_cmod_image = NULL;
|
|||
char *rs_cmod_red = NULL;
|
||||
char *rs_cmod_green = NULL;
|
||||
char *rs_cmod_blue = NULL;
|
||||
unsigned long rs_cache_size = (unsigned long) -1;
|
||||
# ifdef BACKGROUND_CYCLING_SUPPORT
|
||||
char *rs_anim_pixmap_list = NULL;
|
||||
char **rs_anim_pixmaps = NULL;
|
||||
|
@ -277,6 +278,7 @@ static const struct {
|
|||
OPT_LONG("cmod-green", "green-only color modifier (\"brightness contrast gamma\")", &rs_cmod_green),
|
||||
OPT_LONG("cmod-blue", "blue-only color modifier (\"brightness contrast gamma\")", &rs_cmod_blue),
|
||||
OPT_STR('p', "path", "pixmap file search path", &rs_path),
|
||||
OPT_ILONG("cache", "set Imlib2 image/pixmap cache size", &rs_cache_size),
|
||||
# ifdef BACKGROUND_CYCLING_SUPPORT
|
||||
OPT_STR('N', "anim", "a delay and list of pixmaps for cycling", &rs_anim_pixmap_list),
|
||||
# endif /* BACKGROUND_CYCLING_SUPPORT */
|
||||
|
@ -2489,6 +2491,13 @@ parse_imageclasses(char *buff, void *state)
|
|||
print_warning("Pixmap support was not compiled in, ignoring \"icon\" attribute");
|
||||
#endif
|
||||
|
||||
} else if (!BEG_STRCASECMP(buff, "cache")) {
|
||||
#ifdef PIXMAP_SUPPORT
|
||||
rs_cache_size = strtoul(PWord(2, buff), (char **) NULL, 0);
|
||||
#else
|
||||
print_warning("Pixmap support was not compiled in, ignoring \"cache\" attribute");
|
||||
#endif
|
||||
|
||||
} else if (!BEG_STRCASECMP(buff, "path ")) {
|
||||
RESET_AND_ASSIGN(rs_path, Word(2, buff));
|
||||
|
||||
|
@ -3928,6 +3937,10 @@ post_parse(void)
|
|||
}
|
||||
FREE(rs_cmod_blue);
|
||||
}
|
||||
|
||||
if (rs_cache_size != (unsigned long) -1) {
|
||||
imlib_set_cache_size(rs_cache_size);
|
||||
}
|
||||
#endif
|
||||
|
||||
if (Options & Opt_reverseVideo) {
|
||||
|
|
Loading…
Reference in New Issue