FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Merge pull request #7596 from runrevmark/bugfix-23038 · livecode/livecode@14a1639 · GitHub

This repository was archived by the owner on Aug 31, 2021. It is now read-only.
/ livecode Public archive

Commit 14a1639

Browse files
Merge pull request #7596 from runrevmark/bugfix-23038
[[ Bug 23038 ]] Fix creation of color profiles on macOS
2 parents e5f7a76 + d6a9244 commit 14a1639

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

‎docs/notes/bugfix-23038.md‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# Fix some images rendering as black in recent macOS versions

‎engine/src/mac-color.mm‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ void MCPlatformCreateColorTransform(const MCColorSpaceInfo& p_info, MCPlatformCo
7272
CFDataRef t_data;
7373
t_data = nil;
7474

75-
t_success = nil != (t_data = CFDataCreateWithBytesNoCopy(kCFAllocatorDefault, (UInt8*)p_info.embedded.data, p_info.embedded.data_size, kCFAllocatorNull));
75+
t_success = nil != (t_data = CFDataCreate(kCFAllocatorDefault, (UInt8*)p_info.embedded.data, p_info.embedded.data_size));
7676

7777
if (t_success)
7878
t_success = nil != (t_colorspace = CGColorSpaceCreateWithICCProfile(t_data));

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL