Input Roll - delete brushes before creating new ones

This commit is contained in:
adelikat 2014-08-09 21:37:54 +00:00
parent 2c504cff7b
commit 9592f4dacf
1 changed files with 1 additions and 1 deletions

View File

@ -231,11 +231,11 @@ namespace BizHawk.Client.EmuHawk.CustomControls
public void SetBrush(Color color)
{
int rgb = (color.B & 0xFF) << 16 | (color.G & 0xFF) << 8 | color.R;
DeleteObject(_brush);
_brush = CreateSolidBrush(rgb);
}
private IntPtr _brush = IntPtr.Zero;
private IntPtr _pen = IntPtr.Zero;
public void FillRectangle(int x,int y, int w, int h)
{