theme: Make spinner steps count forward, not backward
This makes the spinner roate the right way again.
This commit is contained in:
@ -3003,8 +3003,7 @@ gtk_theming_engine_render_activity (GtkThemingEngine *engine,
|
|||||||
gint inset = 0.7 * radius;
|
gint inset = 0.7 * radius;
|
||||||
|
|
||||||
/* transparency is a function of time and intial value */
|
/* transparency is a function of time and intial value */
|
||||||
gdouble t = 1.0 - (gdouble) ((i + num_steps - step)
|
gdouble t = 1.0 - (gdouble) ((i + step) % num_steps) / num_steps;
|
||||||
% num_steps) / num_steps;
|
|
||||||
gdouble xscale = cos (i * G_PI / half);
|
gdouble xscale = cos (i * G_PI / half);
|
||||||
gdouble yscale = sin (i * G_PI / half);
|
gdouble yscale = sin (i * G_PI / half);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user