Skip to content

Introduce PixelFormat enum #2735

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 5 commits into from
Aug 6, 2023
Merged

Introduce PixelFormat enum #2735

merged 5 commits into from
Aug 6, 2023

Conversation

johnnovak
Copy link
Member

@johnnovak johnnovak commented Aug 6, 2023

Ok, so learning from my recent experience with clinically obese PRs 😅, from now on I'm trying to raise multiple smaller ones for refactoring jobs that can be well-separated.

The bpp (bits per pixel) thing has been bothering me for quite some time now — it really should be an enum, and it should be a pixel format descriptor rather than just a number. Well, now it is 😎

Tested with a few games (CGA/EGA/VGA/Tandy), demos, and Return to Zork (to make sure I did not break ReelMagic that had some weird bpp == 0 init hack that luckily wasn't doing anything useful, apparently), plus checked the image & video capture features for regressions. Everything is hunky-dory 😄 (except for #2734, but I broke that one a while ago; that's unrelated to this change).

@johnnovak johnnovak force-pushed the jn/pixel-format-enum branch from 04135f8 to 2a66584 Compare August 6, 2023 04:28
@johnnovak johnnovak marked this pull request as ready for review August 6, 2023 04:30
@johnnovak johnnovak self-assigned this Aug 6, 2023
@johnnovak johnnovak added plumbing Issues related to low-level support functions and classes refactoring Code refactoring without any functional changes and removed plumbing Issues related to low-level support functions and classes labels Aug 6, 2023
@johnnovak johnnovak changed the title Jn/pixel format enum Introduce PixelFormat enum Aug 6, 2023
@johnnovak johnnovak requested review from weirddan455 and removed request for kcgen August 6, 2023 04:40
@johnnovak johnnovak force-pushed the jn/pixel-format-enum branch from 2a66584 to 7852cdc Compare August 6, 2023 04:43
@johnnovak johnnovak merged commit 2a1c437 into main Aug 6, 2023
@kcgen kcgen deleted the jn/pixel-format-enum branch August 25, 2023 00:07
@johnnovak johnnovak added the video Graphics and video related issues label Dec 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
refactoring Code refactoring without any functional changes video Graphics and video related issues
Projects
No open projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants