diff options
author | marc_culler <marc.culler@gmail.com> | 2020-07-15 20:57:08 (GMT) |
---|---|---|
committer | marc_culler <marc.culler@gmail.com> | 2020-07-15 20:57:08 (GMT) |
commit | 3a4dab519f8f01cd8d16d28af150bb2b07894b5f (patch) | |
tree | fd28c8dfdefeaccf959959dcf60f88045f5bd2dd /macosx/tkMacOSXDraw.c | |
parent | 4819d3849f45e832a8b26c7906c36f66472ef3b9 (diff) | |
download | tk-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.c | 8 |
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]]; } |