From 3b9a46c2df2705a4a767b105186a9362a67e9478 Mon Sep 17 00:00:00 2001 From: GAGIEL Date: Thu, 13 Oct 2016 16:09:34 +0800 Subject: [PATCH] Update sierpinski-triangle-graphical.ahk --- .../AutoHotkey/sierpinski-triangle-graphical.ahk | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Task/Sierpinski-triangle-Graphical/AutoHotkey/sierpinski-triangle-graphical.ahk b/Task/Sierpinski-triangle-Graphical/AutoHotkey/sierpinski-triangle-graphical.ahk index e07d213f46..1a314d23a8 100644 --- a/Task/Sierpinski-triangle-Graphical/AutoHotkey/sierpinski-triangle-graphical.ahk +++ b/Task/Sierpinski-triangle-Graphical/AutoHotkey/sierpinski-triangle-graphical.ahk @@ -82,7 +82,8 @@ Loop, % n UpdateLayeredWindow(hwnd1, hdc, (A_ScreenWidth-Width)/2, (A_ScreenHeight-Height)/2, Width, Height) Sleep, 0.5*1000 } -SelectObject(hdc, obm) +Gdip_DeleteBrush(pBrushBlue) +, SelectObject(hdc, obm) , DeleteObject(hbm) , DeleteDC(hdc) , Gdip_DeleteGraphics(G)