Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simplifying color setup #1320

Closed
wants to merge 1 commit into from
Closed

Conversation

richardgroves
Copy link
Contributor

Use the _fontColor object's CGColor property to setup the context rather than making a new CGColor object and then deleting it. NSMutableAttributedStringFixPlatformSpecificAttributes will also use the _fontColor CGColor so this change doesn't create an object that wasn't going to be created anyway, and we get some reuse.

Use the _fontColor object's CGColor property to setup the context rather than making a new CGColor object and then deleting it. NSMutableAttributedStringFixPlatformSpecificAttributes will also use the _fontColor CGColor so this change doesn't create an object that wasn't going to be created anyway, and we get some reuse.
richardgroves added a commit to NoodlFroot/cocos2d-objc that referenced this pull request May 7, 2015
richardgroves added a commit to NoodlFroot/cocos2d-objc that referenced this pull request Nov 17, 2015
@s1ddok
Copy link
Contributor

s1ddok commented Mar 6, 2016

I can't find a way to merge it to other branch (develop-v3.5). Can somebody advice how to merge PR into other target branch. Or can @richardgroves change target branch himself?

@richardgroves
Copy link
Contributor Author

Will take a look at re-targeting the PR to the 3.5 branch

@richardgroves
Copy link
Contributor Author

Ok - ~1400 comments asking for GitHub to implement changing the branch - isaacs/github#18 - but it still can't be done.

Will repurpose the ~5 line change onto the new branch.

@s1ddok
Copy link
Contributor

s1ddok commented Mar 7, 2016

Well, I can merge it manually too. it's not about my lazyness, it's about keeping things git (is it a phrase at all?).

@richardgroves
Copy link
Contributor Author

It's OK - doing a new PR and will reference this one for completeness.

richardgroves added a commit to richardgroves/cocos2d-iphone that referenced this pull request Mar 7, 2016
Repeat of PR in cocos2d#1320 that got lost due branch changes and GitHub limitations.
@richardgroves
Copy link
Contributor Author

Redone in #1365

@richardgroves richardgroves deleted the patch-1 branch March 7, 2016 10:56
s1ddok pushed a commit that referenced this pull request Nov 27, 2016
Repeat of PR in #1320 that got lost due branch changes and GitHub limitations.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants