mirror of https://github.com/GNOME/gimp.git
app: GIMP_MAX_NUM_THREADS should follow max value of GeglConfig's...
... "threads" property. Actually there is no need of having a public GEGL_MAX_THREADS as written in the previous commit. We can just retrieve the max for a GObject property.
This commit is contained in:
parent
32ffabcba4
commit
894d85f64a
|
@ -38,7 +38,8 @@
|
|||
#include "gimp-intl.h"
|
||||
|
||||
|
||||
#define GIMP_MAX_NUM_THREADS 64
|
||||
#define GIMP_MAX_NUM_THREADS G_PARAM_SPEC_INT (g_object_class_find_property (G_OBJECT_GET_CLASS (gegl_config()), \
|
||||
"threads"))->maximum
|
||||
#define GIMP_MAX_MEM_PROCESS (MIN (G_MAXSIZE, GIMP_MAX_MEMSIZE))
|
||||
|
||||
enum
|
||||
|
|
Loading…
Reference in New Issue