Commit 6cd3c8bc authored by Ell's avatar Ell

app: increase the maximal airbrush stamp FPS

In the Airbrush tool, increase the maximal stamp FPS from 15 to 60,
and change the corresponding maximal Rate value from 150 to 100.
This technically affects tool presets, but we'll live.
parent 30e92506
Pipeline #151844 failed with stages
in 64 minutes and 54 seconds
......@@ -36,6 +36,9 @@
#include "gimp-intl.h"
#define STAMP_MAX_FPS 60
enum
{
STAMP,
......@@ -178,11 +181,13 @@ gimp_airbrush_paint (GimpPaintCore *paint_core,
paint_options,
fade_point);
timeout = 10000 / (options->rate * dynamic_rate);
timeout = (1000.0 / STAMP_MAX_FPS) /
((options->rate / 100.0) * dynamic_rate);
airbrush->timeout_id = g_timeout_add (timeout,
gimp_airbrush_timeout,
airbrush);
airbrush->timeout_id = g_timeout_add_full (G_PRIORITY_HIGH,
timeout,
gimp_airbrush_timeout,
airbrush, NULL);
}
break;
......
......@@ -30,7 +30,7 @@
#include "gimp-intl.h"
#define AIRBRUSH_DEFAULT_RATE 80.0
#define AIRBRUSH_DEFAULT_RATE 50.0
#define AIRBRUSH_DEFAULT_FLOW 10.0
#define AIRBRUSH_DEFAULT_MOTION_ONLY FALSE
......@@ -70,7 +70,7 @@ gimp_airbrush_options_class_init (GimpAirbrushOptionsClass *klass)
"rate",
C_("airbrush-tool", "Rate"),
NULL,
0.0, 150.0, AIRBRUSH_DEFAULT_RATE,
0.0, 100.0, AIRBRUSH_DEFAULT_RATE,
GIMP_PARAM_STATIC_STRINGS);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment