summaryrefslogtreecommitdiffstats
path: root/macosx/tkMacOSXDraw.c
diff options
context:
space:
mode:
authormarc_culler <marc.culler@gmail.com>2020-07-15 20:57:08 (GMT)
committermarc_culler <marc.culler@gmail.com>2020-07-15 20:57:08 (GMT)
commit3a4dab519f8f01cd8d16d28af150bb2b07894b5f (patch)
treefd28c8dfdefeaccf959959dcf60f88045f5bd2dd /macosx/tkMacOSXDraw.c
parent4819d3849f45e832a8b26c7906c36f66472ef3b9 (diff)
downloadtk-3a4dab519f8f01cd8d16d28af150bb2b07894b5f.zip
tk-3a4dab519f8f01cd8d16d28af150bb2b07894b5f.tar.gz
tk-3a4dab519f8f01cd8d16d28af150bb2b07894b5f.tar.bz2
More fixes from [7ebdd17974] (thanks Christopher Chavez): remove the needsRedisplay flag, update comments.
Diffstat (limited to 'macosx/tkMacOSXDraw.c')
-rw-r--r--macosx/tkMacOSXDraw.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/macosx/tkMacOSXDraw.c b/macosx/tkMacOSXDraw.c
index 4973bc2..4304a3c 100644
--- a/macosx/tkMacOSXDraw.c
+++ b/macosx/tkMacOSXDraw.c
@@ -1642,13 +1642,13 @@ TkMacOSXSetupDrawingContext(
* We can only draw into the view when the current CGContext is
* valid and belongs to the view. Validity can only be guaranteed
* inside of a view's drawRect or setFrame methods. The isDrawing
- * attribute tells us whether we are being called from one of those
- * methods. If the CGContext is not valid then we mark our view as
- * needing display.
+ * attribute tells us whether we are being called from drawRect.
+ * If the CGContext is not valid then we mark our view as needing
+ * display.
*/
if (dc.clipRgn) {
- [view addTkDirtyRect:clipBounds];
+ [view addTkDirtyRect:NSRectFromCGRect(clipBounds)];
} else {
[view addTkDirtyRect:[view bounds]];
}