Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: e03aecaff1b14a9c378fa9f98609198c532fcd3fa82b436d6ab164679e61f81f
Ticket: d84d334ae6f7e4fb83934d245d01367805adb8ac
Fix build on older macOS System
User & Date: anonymous on 2023-01-05 21:39:35
Changes

  1. assignee changed to: "nobody"
  2. closer changed to: "nobody"
  3. cmimetype changed to: "text/x-fossil-plain"
  4. 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
     {
    
  5. foundin changed to: "8.6.13"
  6. is_private changed to: "0"
  7. login: "anonymous"
  8. priority changed to: "5 Medium"
  9. private_contact changed to: "b6e2920dc1a7f3b39bfd2ff6b366a164360c472f"
  10. resolution changed to: "None"
  11. severity changed to: "Minor"
  12. status changed to: "Open"
  13. submitter changed to: "anonymous"
  14. subsystem changed to: "- New Builtin Commands"
  15. title changed to: "Fix build on older macOS System"
  16. type changed to: "Bug"