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

edits to CardView.m Card.m and GameView.m for Mavericks #1

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

dyne2meter
Copy link

Hi, Alisdair,

I'm just getting my feet wet with git, and your Freecell project is one that I've been tinkering with a little bit this week. It took me forever to upgrade from SnowLeopard even to Mavericks (just in the last couple of months), so I'm also just getting my feet wet with the coding changes that come with Mavericks. Your project is really solid as far as avoiding deprecated code, and I only had to change compositeToPoint: invocations to drawAtPoint: in a couple of files, and adjust a couple of int variables to NSUInteger or NSInteger. This fork of your project now builds without any issues I can detect under Mavericks, in case you want to update. I don't know whether the changes will put any squeeze on a user base with older systems. Cheers, and thanks for creating this project, which has afforded me many hours of entertainment over the years.

Dan Stein / dyne2meter

MaddTheSane pushed a commit to MaddTheSane/freecell that referenced this pull request Oct 4, 2018
//[image compositeToPoint: origin
// operation: operation
// fraction: card == nil? 0.5 : 1.0 ];
[ image drawAtPoint: origin fromRect: frame operation: operation

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It’s probably better to send fromRect: an NSZeroRect. From the documentation:

If you pass in NSZeroRect, the entire image is drawn.

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