Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
Comment: | A little more clean-up. |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | cgimage_with_crossing |
Files: | files | file ages | folders |
SHA3-256: |
a8794c73c044e3cc2192362eae83edd8 |
User & Date: | culler 2024-06-19 18:27:07 |
Context
2024-06-19
| ||
21:29 | Remove duplicate calls to reset the cgimage backing layer. check-in: b7d0a5b9 user: culler tags: cgimage_with_crossing | |
18:27 | A little more clean-up. check-in: a8794c73 user: culler tags: cgimage_with_crossing | |
14:30 | Clean up setFrameSize. check-in: acb0217c user: culler tags: cgimage_with_crossing | |
Changes
Changes to macosx/tkMacOSXWindowEvent.c.
︙ | ︙ | |||
1010 1011 1012 1013 1014 1015 1016 | * the view is on a Retina display, as well as incorrect size when * the view is on a normal display. */ self.layer.contentsScale = self.window.screen.backingScaleFactor; [self resetTkLayerBitmapContext]; // need to redraw | | | 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 | * the view is on a Retina display, as well as incorrect size when * the view is on a normal display. */ self.layer.contentsScale = self.window.screen.backingScaleFactor; [self resetTkLayerBitmapContext]; // need to redraw [self generateExposeEvents: self.bounds]; } #endif - (void) addTkDirtyRect: (NSRect) rect { _tkNeedsDisplay = YES; _tkDirtyRect = NSUnionRect(_tkDirtyRect, rect); |
︙ | ︙ | |||
1064 1065 1066 1067 1068 1069 1070 | TkGenWMConfigureEvent(tkwin, Tk_X(tkwin), Tk_Y(tkwin), width, height, TK_SIZE_CHANGED | TK_MACOSX_HANDLE_EVENT_IMMEDIATELY); oldProc = Tk_RestrictEvents(ConfigureRestrictProc, NULL, &oldArg); while (Tcl_DoOneEvent(TCL_WINDOW_EVENTS|TCL_DONT_WAIT)) {} Tk_RestrictEvents(oldProc, oldArg, &oldArg); | < < < > | > > > | > > > > > > > | > | 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 | TkGenWMConfigureEvent(tkwin, Tk_X(tkwin), Tk_Y(tkwin), width, height, TK_SIZE_CHANGED | TK_MACOSX_HANDLE_EVENT_IMMEDIATELY); oldProc = Tk_RestrictEvents(ConfigureRestrictProc, NULL, &oldArg); while (Tcl_DoOneEvent(TCL_WINDOW_EVENTS|TCL_DONT_WAIT)) {} Tk_RestrictEvents(oldProc, oldArg, &oldArg); if ([w respondsToSelector: @selector (tkLayoutChanged)]) { [(TKWindow *)w tkLayoutChanged]; } /* * Reset the cgimage layer and redraw the entire content view. */ [self viewDidChangeBackingProperties]; /* * In live resize we seem to need to draw a second time to * avoid artifacts. */ if ([self inLiveResize]) { [self generateExposeEvents:self.bounds]; } /* * Finally, unlock the main autoreleasePool. */ [NSApp _unlockAutoreleasePool]; } // Schedule a redisplay of the view [self setNeedsDisplay:YES]; } /* * Core method of this class: generates expose events for redrawing. The * expose events are immediately removed from the Tcl event loop and processed. |
︙ | ︙ |