8000 Maintenance by scottrules44 · Pull Request #812 · coronalabs/corona · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Maintenance #812

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

Merged
merged 1 commit into from
Jun 6, 2025
Merged

Maintenance #812

merged 1 commit into from
Jun 6, 2025

Conversation

scottrules44
Copy link
Contributor

Fixes to pull request "Core: Fixing unpack with alignment"

https://github.com/scottrules44/Solar2D-98/actions/runs/15482662331

@scottrules44 scottrules44 requested a review from Shchvova as a code owner June 6, 2025 16:08
@Shchvova Shchvova merged commit 8774c8b into coronalabs:master Jun 6, 2025
1 check passed
@@ -115,9 +125,11 @@ GLint CalculateOptimalAlignment(U32 width, GLenum format)
bytesPerPixel = 3;
break;

case GL_RGBA:
case GL_BGRA_EXT:
Copy link
Contributor

Choose a reason for hiding this comment

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

Hi there! I had a quick question about this PR. Was the removal of GL_BGRA_EXT an intentional change? From my understanding, this PR seems to be focused on GL_ABGR_EXT macro definitions, and GL_BGRA_EXT still feels relevant, even if the default outcome is similar.

@clang-clang-clang
Copy link
Contributor

Hey! Thanks for your contributions.

I noticed some code-unrelated formatting changes (like indentation/line breaks) in this PR. Since a new version hasn't been released yet, I wonder if we should aim to follow the LLVM "golden rule" of adopting existing styles for uniformity. Just a thought for consistency. Thank you!

@Shchvova
Copy link
Contributor
Shchvova commented Jun 9, 2025

@clang-clang-clang I think right now code doesn't have consistent formatting unfortunatelly. I think if your editor applies some formatting that's OK to be honest. Any formatting would be better than whatever we have now. Or does it causes some issues?

@clang-clang-clang
Copy link
Contributor

There are no issues.
My simple idea is to reduce the cost of comprehension.
Due to historical reasons, it is not recommended to change the existing format unnecessarily. However, there is no problem with the new code.

@Shchvova
Copy link
Contributor
Shchvova commented Jun 9, 2025

Agree. But also, easily mitigated with
image

@clang-clang-clang
Copy link
Contributor

Yep, basically all Git tools have this option. Because I have encountered situations where blank characters affected the operation, I usually perform binary comparison and pay attention to any potential impacts. Especially, Solar2D run and be maintained on multiple platforms, across different programming languages and natural languages, and some resource contents need to be mindful of format changes.

Overall, there is no problem. As long as the team can understand each other, everything will be fine. ;D
Thank you very much for your explanation.

@scottrules44
Copy link
Contributor Author

My mistake I used Xcode to edit your code and which may have messed it up a bit.
As far as white space, my understanding is the that cpp is not really affected by white space with a small few exception. Anyway next time we look at this we can try to clean it up sometime in the future. As a side note please test on a platforms before you make any changes :)

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.

3 participants
0