Tk Source Code

Check-in [5457f9e2]
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 | trunk
Files: files | file ages | folders
SHA1: 5457f9e2bf08b148cc4739f258c874530b3c399e
User & Date: kevin_walzer 2015-02-22 18:03:22
Context
2015-02-24
15:09
merge mark check-in: 754c58b7 user: dgp tags: trunk
2015-02-22
18:03
Fix for CGRect/NSRect confusion check-in: 5457f9e2 user: kevin_walzer tags: trunk
00:39
[ab6dab8393] OBOE in loop termination made corrupt dash lines in ps output. check-in: 8be232ca user: dgp tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to macosx/tkMacOSXWindowEvent.c.

845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
/*
 * 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.*/
- (void) generateExposeEvents: (HIMutableShapeRef) shape






|







845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
/*
 * 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.*/
- (void) generateExposeEvents: (HIMutableShapeRef) shape