summaryrefslogtreecommitdiff
path: root/area_windows.go
diff options
context:
space:
mode:
authorPietro Gagliardi <[email protected]>2014-03-29 19:02:09 -0400
committerPietro Gagliardi <[email protected]>2014-03-29 19:02:09 -0400
commitefdd60375ab3048919bde2d5f410b92626a6a712 (patch)
tree0ea30f1113217bcf6111dc0ce015f2d43388b86a /area_windows.go
parent652797bd3e3c374620f75aa2bea2ee3534396ab8 (diff)
Documented that the clip area in AreaHandler.Paint() more properly and indicate that it is cleared on each AreaHandler.Paint() call; (try to) implement that on Windows (GTK+ does it for us; noted that as well).
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
}