Skip to content

Commit 81d2d64

Browse files
committed
Merge branch 'Shortcuts' into ShortcutDialog
2 parents bbce2ba + 13dc1b6 commit 81d2d64

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

FlashDevelop/Dialogs/ShortcutDialog.cs

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -213,8 +213,15 @@ private void InitializeComponent()
213213
/// </summary>
214214
void InitializeGraphics()
215215
{
216-
this.pictureBox.Image = Globals.MainForm.FindImage("229");
217-
this.clearButton.Image = Globals.MainForm.FindImage("153");
216+
using (var imageList = new ImageList())
217+
{
218+
imageList.ColorDepth = ColorDepth.Depth32Bit;
219+
imageList.ImageSize = new Size(16, 16);
220+
imageList.Images.Add(ScaleHelper.Scale((Bitmap) Globals.MainForm.FindImage("229", false)));
221+
imageList.Images.Add(ScaleHelper.Scale((Bitmap) Globals.MainForm.FindImage("153", false)));
222+
this.pictureBox.Image = imageList.Images[0];
223+
this.clearButton.Image = imageList.Images[1];
224+
}
218225
}
219226

220227
/// <summary>

0 commit comments

Comments
 (0)