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

[[ Bug 23038 ]] Fix creation of color profiles on macOS by runrevmark · Pull Request #7596 · livecode/livecode · GitHub

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

[[ Bug 23038 ]] Fix creation of color profiles on macOS - #7596

Merged
livecodepanos merged 1 commit into
livecode:release-9.6.3from
runrevmark:bugfix-23038
Jul 20, 2021
Merged

[[ Bug 23038 ]] Fix creation of color profiles on macOS#7596
livecodepanos merged 1 commit into
livecode:release-9.6.3from
runrevmark:bugfix-23038

Conversation

Copy link
Copy Markdown
Contributor

This patch fixes an issue with the creation of color profiles from
embedded ICC information. Previously the NoCopy CFDataRef constructor
was being used to wrap the raw bytes to be passed to the relevant
CGColorSpaceRef constructor. However, the data wrapped in this way
could be released at any time, and in versions of macOS since
Mojave it appears that the OS defers copying the data thus causing
strange effects when the color profile is eventually applied. The
problem has been fixed by using the normal CFDataRef constructor
which copies the provided bytes.

Closes https://quality.livecode.com/show_bug.cgi?id=23038

This patch fixes an issue with the creation of color profiles from
embedded ICC information. Previously the NoCopy CFDataRef constructor
was being used to wrap the raw bytes to be passed to the relevant
CGColorSpaceRef constructor. However, the data wrapped in this way
could be released at any time, and in versions of macOS since
Mojave it appears that the OS defers copying the data thus causing
strange effects when the color profile is eventually applied. The
problem has been fixed by using the normal CFDataRef constructor
which copies the provided bytes.
runrevmark added the bug label Jul 20, 2021
runrevmark added this to the 9.6.3-rc-2 milestone Jul 20, 2021
runrevmark requested a review from livecodeian July 20, 2021 11:32
runrevmark self-assigned this Jul 20, 2021

Copy link
Copy Markdown
Contributor

@livecode-vulcan review ok d6a9244

Copy link
Copy Markdown
Contributor

💙 review by @livecodeian ok d6a9244

livecode-vulcan added a commit that referenced this pull request Jul 20, 2021
[[ Bug 23038 ]] Fix creation of color profiles on macOS

This patch fixes an issue with the creation of color profiles from
embedded ICC information. Previously the NoCopy CFDataRef constructor
was being used to wrap the raw bytes to be passed to the relevant
CGColorSpaceRef constructor. However, the data wrapped in this way
could be released at any time, and in versions of macOS since
Mojave it appears that the OS defers copying the data thus causing
strange effects when the color profile is eventually applied. The
problem has been fixed by using the normal CFDataRef constructor
which copies the provided bytes.

Closes https://quality.livecode.com/show_bug.cgi?id=23038

Copy link
Copy Markdown
Contributor

😎 test success d6a9244

  • try-community-armv6-android-sdk26_ndk16r15: success
  • try-community-armv7-android-ndk16r15: success
  • try-community-arm64-android-ndk16r15: success
  • try-community-x86-android-ndk16r15: success
  • try-community-x86_64-android-ndk16r15: success
  • try-community-js-emscripten-sdk1.35: success
  • try-community-universal-ios-iphoneos14.5: success
  • try-community-universal-ios-iphoneos14.4: success
  • try-community-universal-ios-iphonesimulator14.5: success
  • try-community-universal-ios-iphonesimulator14.4: success
  • try-community-universal-mac-macosx10.9: success
  • try-community-x86-linux-debian8: success
  • try-community-x86_64-linux-debian8: success
  • try-community-x86-win32: success
  • try-community-x86_64-win32: success

livecodepanos merged commit 14a1639 into livecode:release-9.6.3 Jul 20, 2021
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants


Back | FazBrowse Home | New Git URL