summaryrefslogtreecommitdiff
path: root/area_windows.go
diff options
context:
space:
mode:
Diffstat (limited to 'area_windows.go')
-rw-r--r--area_windows.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/area_windows.go b/area_windows.go
index 70beb8c..52cc781 100644
--- a/area_windows.go
+++ b/area_windows.go
@@ -78,11 +78,10 @@ func paintArea(s *sysData) {
var xrect _RECT
var ps _PAINTSTRUCT
- // TODO send _TRUE if we want to erase the clip area
r1, _, _ := _getUpdateRect.Call(
uintptr(s.hwnd),
uintptr(unsafe.Pointer(&xrect)),
- uintptr(_FALSE))
+ uintptr(_TRUE)) // erase the update rect with the background color
if r1 == 0 { // no update rect; do nothing
return
}