Tk Source Code

Check-in [004b3b28]
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:Fix for CGRect/NSRect confusion
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | core-8-5-branch
Files: files | file ages | folders
SHA1: 004b3b28d1cc01593cd3e132d2600968f4218a19
User & Date: kevin_walzer 2015-02-22 18:03:41
Context
2015-02-28
02:59
Fix for 5824a992df, images not displaying in Cocoa in label with sunken relief check-in: c4051e7a user: kevin_walzer tags: core-8-5-branch
2015-02-24
15:10
merge 8.5 check-in: b72955ea user: dgp tags: core-8-5-18-rc
15:09
merge mark check-in: 754c58b7 user: dgp tags: trunk
2015-02-22
18:03
Fix for CGRect/NSRect confusion check-in: 004b3b28 user: kevin_walzer tags: core-8-5-branch
2015-02-20
21:29
Malformed comment. check-in: ae6413cc user: dgp tags: core-8-5-branch
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to macosx/tkMacOSXWindowEvent.c.

849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
/*
 * As insurance against bugs that might cause layout glitches during a live
 * resize, we redraw the window at the end of the resize operation.
 */

- (void)viewDidEndLiveResize
{
    NSRect bounds = NSRectFromCGRect([self bounds]);
    HIShapeRef shape = HIShapeCreateWithRect(&bounds);
    [self generateExposeEvents: shape];

}


/*Core function of this class, generates expose events for redrawing.*/






|







849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
/*
 * As insurance against bugs that might cause layout glitches during a live
 * resize, we redraw the window at the end of the resize operation.
 */

- (void)viewDidEndLiveResize
{
    HIRect bounds = NSRectToCGRect([self bounds]);
    HIShapeRef shape = HIShapeCreateWithRect(&bounds);
    [self generateExposeEvents: shape];

}


/*Core function of this class, generates expose events for redrawing.*/