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

SDL screen mode/size improvements #826

Merged
merged 10 commits into from
Jul 5, 2023

Conversation

Daft-Freak
Copy link
Collaborator

Syncs SDL screen mode handling with the other ports and allows overriding the screen size on the command line. (Can finally test picosystem things in SDL without hacking the sources)

Also fixes a bug with surfaces taller than 255. (I tried 240x320 for fun).

(I definitely did this because of the picosystem thing and not because of blitsim.)

This removes some warnings about x/y not being initialised and simplifies the code a bit.
stm32 and pico are already doing this.
WE only need the size now
screen-mode test now looks as nice as it does on hardware. (+anything running in BlitSim)
Would end up crashing with surface height > 255. Removing the cast is slightly less code on arm anyway
@Daft-Freak
Copy link
Collaborator Author

Oops, included #824.

My preferred solution is to merge that though, bit hard to build things here without it.

@Gadgetoid Gadgetoid merged commit fc23c1d into 32blit:master Jul 5, 2023
8 checks passed
@Daft-Freak Daft-Freak deleted the sdl-window-flags branch July 5, 2023 13:15
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