Skip to content

Commit

Permalink
fix wrong dock icon direction when started from docked status
Browse files Browse the repository at this point in the history
  • Loading branch information
geovens committed Jan 18, 2016
1 parent c95fb9f commit c91bc58
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Binary file modified bin/gInk.exe
Binary file not shown.
5 changes: 4 additions & 1 deletion src/FormCollection.cs
Original file line number Diff line number Diff line change
Expand Up @@ -96,11 +96,14 @@ public FormCollection(Root root)
g = Graphics.FromImage(image_dock);
g.InterpolationMode = System.Drawing.Drawing2D.InterpolationMode.HighQualityBicubic;
g.DrawImage(global::gInk.Properties.Resources.dock, 0, 0, btDock.Width, btDock.Height);
btDock.Image = image_dock;
image_dockback = new Bitmap(btDock.Width, btDock.Height);
g = Graphics.FromImage(image_dockback);
g.InterpolationMode = System.Drawing.Drawing2D.InterpolationMode.HighQualityBicubic;
g.DrawImage(global::gInk.Properties.Resources.dockback, 0, 0, btDock.Width, btDock.Height);
if (Root.Docked)
btDock.Image = image_dockback;
else
btDock.Image = image_dock;

image_pencil = new Bitmap(btPen3.Width, btPen3.Height);
g = Graphics.FromImage(image_pencil);
Expand Down

0 comments on commit c91bc58

Please sign in to comment.