summaryrefslogtreecommitdiff
path: root/area_darwin.go
diff options
context:
space:
mode:
authorPietro Gagliardi <[email protected]>2014-05-17 17:01:52 -0400
committerPietro Gagliardi <[email protected]>2014-05-17 17:01:52 -0400
commitce14390eff98fc51f74bd61f06542c8d1bb3d7f0 (patch)
tree9f081ae7221ab83b0363f43ea730cb03452ade15 /area_darwin.go
parent352c60bf688dfaa8efd9c105d49a0dccd0c496cc (diff)
Fixed variable names in Area drawing code on Unix to reflect that image.Rectangle is point-to-point, not origin/size like on Mac OS X. Windows was already fine; it just uses "left, top, right, and bottom" instead of "x0, y0, x1, and y1".
Diffstat (limited to 'area_darwin.go')
-rw-r--r--area_darwin.go1
1 files changed, 0 insertions, 1 deletions
diff --git a/area_darwin.go b/area_darwin.go
index e5508da..3211822 100644
--- a/area_darwin.go
+++ b/area_darwin.go
@@ -29,7 +29,6 @@ func areaView_drawRect(self C.id, rect C.struct_xrect) {
s := getSysData(self)
// TODO clear clip rect
// rectangles in Cocoa are origin/size, not point0/point1; if we don't watch for this, weird things will happen when scrolling
- // TODO change names EVERYWHERE ELSE to match
cliprect := image.Rect(int(rect.x), int(rect.y), int(rect.x + rect.width), int(rect.y + rect.height))
max := C.frame(self)
cliprect = image.Rect(0, 0, int(max.width), int(max.height)).Intersect(cliprect)