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

Fix: One column of pixels means 4 skip bytes in 32bpp. #7

Merged
merged 2 commits into from Sep 7, 2015

Conversation

Alberth289346
Copy link
Contributor

Cropping removes columns of pixels, but a column is 4 channels wide in RGBA.

Tested by sadger, confirmed to be working for 1 removed column at the left.

@TheCycoONE
Copy link
Member

Do you think this deserves a comment?

@TheCycoONE
Copy link
Member

Or a const like RGBA_BYTES_PER_PIXEL. I would really like to reduce the number of undocumented magic numbers.

@Alberth289346
Copy link
Contributor Author

Good idea, fixed.
In the second commit, I did some more magic reduction, but mainly made the doxygen documentation more complete and accessible.

I find it confusing that some doxymentation must be in the .h file, and others (of static members, and local constants) must be in .cpp. It's hard to see whether everything is documented.

The doxymentation style is also hard to type (//! for the first line, /*! .. */ for the other text), I don't really see the purpose of that. Simplifying it would be welcome.

TheCycoONE added a commit that referenced this pull request Sep 7, 2015
Fix: One column of pixels means 4 skip bytes in 32bpp.
@TheCycoONE TheCycoONE merged commit 400b38f into CorsixTH:master Sep 7, 2015
@TheCycoONE
Copy link
Member

Sorry, forgot about this

@Alberth289346 Alberth289346 deleted the fix_cropping_offset branch September 7, 2015 16:02
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.

None yet

2 participants