Don't resize icons to the final presented size, since we have multiple
icons on the bitmap
This commit is contained in:
parent
54dd1d699a
commit
f2366a9255
|
@ -39,7 +39,7 @@ namespace SparkleShare {
|
||||||
CurrentStep = 0;
|
CurrentStep = 0;
|
||||||
Size = 16;
|
Size = 16;
|
||||||
|
|
||||||
Gdk.Pixbuf spinner_gallery = SparkleHelpers.GetIcon ("process-working", Size);
|
Gdk.Pixbuf spinner_gallery = SparkleHelpers.GetIcon ("process-working", Size * 8);
|
||||||
|
|
||||||
int frames_in_width = spinner_gallery.Width / Size;
|
int frames_in_width = spinner_gallery.Width / Size;
|
||||||
int frames_in_height = spinner_gallery.Height / Size;
|
int frames_in_height = spinner_gallery.Height / Size;
|
||||||
|
|
|
@ -69,7 +69,7 @@ namespace SparkleShare {
|
||||||
FrameNumber = 0;
|
FrameNumber = 0;
|
||||||
|
|
||||||
AnimationFrames = new Gdk.Pixbuf [5];
|
AnimationFrames = new Gdk.Pixbuf [5];
|
||||||
Gdk.Pixbuf frames_pixbuf = SparkleHelpers.GetIcon ("process-syncing-sparkleshare", 24);
|
Gdk.Pixbuf frames_pixbuf = SparkleHelpers.GetIcon ("process-syncing-sparkleshare", 120);
|
||||||
|
|
||||||
for (int i = 0; i < AnimationFrames.Length; i++)
|
for (int i = 0; i < AnimationFrames.Length; i++)
|
||||||
AnimationFrames [i] = new Gdk.Pixbuf (frames_pixbuf, (i * 24), 0, 24, 24);
|
AnimationFrames [i] = new Gdk.Pixbuf (frames_pixbuf, (i * 24), 0, 24, 24);
|
||||||
|
|
Loading…
Reference in a new issue