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

FlxFramesCollection: check and trim frame sizes, closes #1937 #1966

Merged
merged 5 commits into from
Sep 30, 2016

Conversation

Beeblerox
Copy link
Member

i'm not sure whether we should add this check

* @param name optional frame name for debugging info.
* @return checked and trimmed frame rectangle.
*/
private inline function checkFrame(frame:FlxRect, ?name:String):FlxRect
Copy link
Member

Choose a reason for hiding this comment

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

I don't think this function is a good inline candidate - too long.

@Gama11
Copy link
Member

Gama11 commented Sep 30, 2016

i'm not sure whether we should add this check

What's the pros / cons?

@Beeblerox
Copy link
Member Author

con: it complicates code.
pro: we are making sure that data is correct and modify it (trim frame rectangle) if it's not

@Gama11
Copy link
Member

Gama11 commented Sep 30, 2016

I think it's nice to have consistent cross-platform behavior, even if the input values are technically incorrect.

@Gama11 Gama11 changed the title Additional check for frame size. see issue #1937 comments FlxFramesCollection: check and trim frame sizes, closes #1937 Sep 30, 2016
@Gama11 Gama11 merged commit 673a417 into dev Sep 30, 2016
@Gama11 Gama11 deleted the Beeblerox-patch-1 branch September 30, 2016 10:39
Aurel300 pushed a commit to larsiusprime/haxeflixel that referenced this pull request Apr 18, 2018
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