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

Quartz: Don't enforce 32 bpp in older OSX releases (issue #888) #889

Merged

Conversation

dwatteau
Copy link
Contributor

See issue #888.

Commit 991bbb9 added a QZ_GetModeInfo() restriction, rejecting displays < 32 bpp. It seems that SDL 1.2.15 was the first SDL 1.2 adding this restriction.

But it's trivial on OSX 10.4 to have a monitor set to only "Thousands of colors" in the system preferences (especially when one uses Classic Mode or runs games requiring a lower bit depth). Moreover, it appears that it worked just fine, at least on OSX PPC 10.4/10.5.

The change made some OSX PPC apps (still maintained there to this day, using SDL 1.2), such as DOSBox 0.74-3-3 or ScummVM 2.9.0, fail right after SDL_Init() with a fatal "Unsupported display mode" initialization error. Earlier releases using SDL < 1.2.15 worked fine for people using a lower bit depth on older OSX, though.

So the original intent may have been to restrict to 32-bpp output for "newer" OSX releases only. Let's go for this behavior, and see if anyone reports any issue with that.

)

Commit 991bbb9 added a QZ_GetModeInfo()
restriction, rejecting displays < 32 bpp. It seems that SDL 1.2.15 was
the first SDL 1.2 adding this restriction.

But it's trivial on OSX 10.4 to have a monitor set to only "Thousands
of colors" in the system preferences (especially when one uses Classic
Mode or runs games requiring a lower bit depth).  Moreover, it appears
that it worked just fine, at least on OSX PPC 10.4/10.5.

The change made some OSX PPC apps (still maintained there to this day,
using SDL 1.2), such as DOSBox 0.74-3-3 or ScummVM 2.9.0, fail right
after SDL_Init() with a fatal "Unsupported display mode" initialization
error.  Earlier releases using SDL < 1.2.15 worked fine for people
using a lower bit depth on older OSX, though.

So the original intent may have been to restrict to 32-bpp output for
"newer" OSX releases only. Let's go for this behavior, and see if
anyone reports any issue with that.
@icculus icculus merged commit 61074e0 into libsdl-org:main Jan 20, 2025
@dwatteau dwatteau deleted the fix/quartz-older-osx-allow-lower-bpp-again branch January 20, 2025 15:40
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