Added basic framework for plug-ins to access the use_cpu_accel
2006-06-01 Sven Neumann <sven@gimp.org> Added basic framework for plug-ins to access the use_cpu_accel configuration (bug #342860): * app/composite/gimp-composite.[ch]: added new function gimp_composite_use_cpu_accel(). * libgimpbase/gimpprotocol.[ch]: added use_cpu_accel to the config message. * app/plug-in/gimppluginmanager-call.c: pass the return value of gimp_composite_use_cpu_accel() for config.use_cpu_accel. * libgimp/gimp.[ch]: make the config value accessible by means of a new function gimp_use_cpu_accel(). * libgimp/gimp.def: updated.
This commit is contained in:
committed by
Sven Neumann
parent
a3e967f4e8
commit
6c25ae9374
@ -384,3 +384,9 @@ gimp_composite_init (gboolean be_verbose,
|
||||
can_use_vis ? '+' : '-');
|
||||
}
|
||||
}
|
||||
|
||||
gboolean
|
||||
gimp_composite_use_cpu_accel (void)
|
||||
{
|
||||
return ((gimp_composite_options.bits & GIMP_COMPOSITE_OPTION_USE) != 0);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user