Overview
| Artifact ID: | e03aecaff1b14a9c378fa9f98609198c532fcd3fa82b436d6ab164679e61f81f |
|---|---|
| Ticket: | d84d334ae6f7e4fb83934d245d01367805adb8ac
Fix build on older macOS System |
| User & Date: | anonymous on 2023-01-05 21:39:35 |
Changes
- assignee changed to: "nobody"
- closer changed to: "nobody"
- cmimetype changed to: "text/x-fossil-plain"
- comment changed to:
Tk makes use of viewDidChangeBackingProperties, which is only available on macOS 10.7+. Wrapping viewDidChangeBackingProperties with preprocessor commands fixes the problem. See https://github.com/tcltk/tk/commit/b0cb1a48cb0c4a0118d45e8804476a6b4ab502c8 See also https://developer.apple.com/documentation/quartzcore/calayer/1410746-contentsscale --- macosx/tkMacOSXWindowEvent.c.orig +++ macosx/tkMacOSXWindowEvent.c @@ -1009,6 +1009,7 @@ return NO; } +#if !(MAC_OS_X_VERSION_MAX_ALLOWED < 1070) - (void) viewDidChangeBackingProperties { @@ -1021,6 +1022,7 @@ self.layer.contentsScale = self.window.screen.backingScaleFactor; } +#endif - (void) addTkDirtyRect: (NSRect) rect { - foundin changed to: "8.6.13"
- is_private changed to: "0"
- login: "anonymous"
- priority changed to: "5 Medium"
- private_contact changed to: "b6e2920dc1a7f3b39bfd2ff6b366a164360c472f"
- resolution changed to: "None"
- severity changed to: "Minor"
- status changed to: "Open"
- submitter changed to: "anonymous"
- subsystem changed to: "- New Builtin Commands"
- title changed to: "Fix build on older macOS System"
- type changed to: "Bug"