Tk Source Code

Check-in [5a5abf71]
Login

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

Overview
Comment:Fix for drawing lags on OS X Mavericks; thanks to Ned Deily for report and Daniel Steffen for patch
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | core-8-5-branch
Files: files | file ages | folders
SHA1: 5a5abf71f9fdb0dac6020239f0f93e7bd272ad14
User & Date: kevin_walzer 2013-10-27 20:27:00
Context
2013-10-28
09:52
Fix [3603436fff]: png save has wrong component indexes check-in: e4ef1ff7 user: jan.nijtmans tags: core-8-5-branch
2013-10-27
20:27
Fix for drawing lags on OS X Mavericks; thanks to Ned Deily for report and Daniel Steffen for patch check-in: 5a5abf71 user: kevin_walzer tags: core-8-5-branch
2013-10-04
11:21
When compiling with MSVC++, no longer link the stub library with msvcrt??.dll. This way, workarounds in extensions like http://core.tcl.tk/itcl/info/a961f0729c are no longer necessary. check-in: 51cd37c7 user: jan.nijtmans tags: core-8-5-branch
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to macosx/tkMacOSXDraw.c.

1684
1685
1686
1687
1688
1689
1690

1691
1692
1693
1694
1695
1696
1697

void
TkMacOSXRestoreDrawingContext(
    TkMacOSXDrawingContext *dcPtr)
{
    if (dcPtr->context) {
	CGContextSynchronize(dcPtr->context);

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







>







1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698

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);
	}
    }