Tk Source Code

Check-in [270e0f0e]
Login
Bounty program for improvements to Tcl and certain Tcl packages.
Tcl 2019 Conference, Houston/TX, US, Nov 4-8
Send your abstracts to [email protected]
or submit via the online form by Sep 9.

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Removed unnecessary calls to deprecated methods [NSWindow disableFlushWindow] and [NSWindow enableFlushWindow] in TkMacOSXSetupDrawingContext and TkMacOSXRestoreDrawingContext respectively.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | bug-1938774fff | bug-1821174fff
Files: files | file ages | folders
SHA3-256: 270e0f0e3a207d9e6480f2341e20ee46837e48c352af8d4877731d2d0a513aad
User & Date: culler 2018-06-08 14:35:20
Context
2018-06-09
20:24
Remove platform checking: all platforms will call XSync() Closed-Leaf check-in: d47221a4 user: fvogel tags: bug-1938774fff, bug-1821174fff
2018-06-08
14:35
Removed unnecessary calls to deprecated methods [NSWindow disableFlushWindow] and [NSWindow enableFlushWindow] in TkMacOSXSetupDrawingContext and TkMacOSXRestoreDrawingContext respectively. check-in: 270e0f0e user: culler tags: bug-1938774fff, bug-1821174fff
2018-06-07
19:18
Replace calls to deprecated [NSWindow flushWindow] et al with calls to [NSWindow displayIfNeeded]. check-in: b166995c user: culler tags: bug-1938774fff, bug-1821174fff
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to macosx/tkMacOSXDraw.c.

1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
....
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
		dontDraw = !dc.focusLocked;
	    } else {
		dontDraw = ![view canDraw];
	    }
	    if (dontDraw) {
		goto end;
	    }
	    [[view window] disableFlushWindow];
	    dc.view = view;
	    dc.context = [[NSGraphicsContext currentContext] graphicsPort];
	    dc.portBounds = NSRectToCGRect([view bounds]);
	    if (dc.clipRgn) {
		clipBounds = CGContextGetClipBoundingBox(dc.context);
	    }
	} else {
................................................................................
void
TkMacOSXRestoreDrawingContext(
    TkMacOSXDrawingContext *dcPtr)
{
    if (dcPtr->context) {
	CGContextSynchronize(dcPtr->context);
	[[dcPtr->view window] setViewsNeedDisplay:YES];
	[[dcPtr->view window] enableFlushWindow];
	if (dcPtr->focusLocked) {
	    [dcPtr->view unlockFocus];
	} else {
	    CGContextRestoreGState(dcPtr->context);
	}
    }
    if (dcPtr->clipRgn) {






<







 







<







1484
1485
1486
1487
1488
1489
1490

1491
1492
1493
1494
1495
1496
1497
....
1610
1611
1612
1613
1614
1615
1616

1617
1618
1619
1620
1621
1622
1623
		dontDraw = !dc.focusLocked;
	    } else {
		dontDraw = ![view canDraw];
	    }
	    if (dontDraw) {
		goto end;
	    }

	    dc.view = view;
	    dc.context = [[NSGraphicsContext currentContext] graphicsPort];
	    dc.portBounds = NSRectToCGRect([view bounds]);
	    if (dc.clipRgn) {
		clipBounds = CGContextGetClipBoundingBox(dc.context);
	    }
	} else {
................................................................................
void
TkMacOSXRestoreDrawingContext(
    TkMacOSXDrawingContext *dcPtr)
{
    if (dcPtr->context) {
	CGContextSynchronize(dcPtr->context);
	[[dcPtr->view window] setViewsNeedDisplay:YES];

	if (dcPtr->focusLocked) {
	    [dcPtr->view unlockFocus];
	} else {
	    CGContextRestoreGState(dcPtr->context);
	}
    }
    if (dcPtr->clipRgn) {