dont delete this font, it will break winforms. but probably still delete other fonts. as usual with windows its freaking impossible to tell when you should delete a GDI object, sometimes I guess wrong.

This commit is contained in:
zeromus 2016-04-02 18:02:19 -05:00
parent 50a3b41eb2
commit 9be6a8533b
2 changed files with 0 additions and 2 deletions

View File

@ -881,7 +881,6 @@
//
// FlushSaveRAMMenuItem
//
this.FlushSaveRAMMenuItem.Font = new System.Drawing.Font("Tahoma", 8.25F);
this.FlushSaveRAMMenuItem.Name = "FlushSaveRAMMenuItem";
this.FlushSaveRAMMenuItem.Size = new System.Drawing.Size(152, 22);
this.FlushSaveRAMMenuItem.Text = "&Flush Save Ram";

View File

@ -52,7 +52,6 @@ namespace BizHawk.Client.EmuHawk
if (SaveRAMSubMenu.Font.Bold != needBold)
{
var font = new System.Drawing.Font(SaveRAMSubMenu.Font, needBold ? FontStyle.Bold : FontStyle.Regular);
SaveRAMSubMenu.Font.Dispose();
SaveRAMSubMenu.Font = font;
}
}