mirror of https://github.com/GNOME/gimp.git
limit the tile-cache-size to G_MAXULONG or GIMP_MAX_MEMSIZE, whatever is
2005-05-08 Sven Neumann <sven@gimp.org> * app/config/gimpbaseconfig.c: limit the tile-cache-size to G_MAXULONG or GIMP_MAX_MEMSIZE, whatever is smaller. Fixes bug #303371.
This commit is contained in:
parent
df3ae9c65d
commit
63676cca6a
|
@ -1,3 +1,9 @@
|
|||
2005-05-08 Sven Neumann <sven@gimp.org>
|
||||
|
||||
* app/config/gimpbaseconfig.c: limit the tile-cache-size to
|
||||
G_MAXULONG or GIMP_MAX_MEMSIZE, whatever is smaller. Fixes
|
||||
bug #303371.
|
||||
|
||||
2005-05-07 Manish Singh <yosh@gimp.org>
|
||||
|
||||
* tools/pdbgen/pdb/image.pdb: Fix a typo reported in bug #303379.
|
||||
|
|
|
@ -123,7 +123,8 @@ gimp_base_config_class_init (GimpBaseConfigClass *klass)
|
|||
0);
|
||||
GIMP_CONFIG_INSTALL_PROP_MEMSIZE (object_class, PROP_TILE_CACHE_SIZE,
|
||||
"tile-cache-size", TILE_CACHE_SIZE_BLURB,
|
||||
0, GIMP_MAX_MEMSIZE, 1 << 28, /* 256MB */
|
||||
0, MIN (G_MAXULONG, GIMP_MAX_MEMSIZE),
|
||||
1 << 28, /* 256MB */
|
||||
GIMP_CONFIG_PARAM_CONFIRM);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue