We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 711

Summary: svgalib backend 8 bit depth only
Product: SDL Reporter: kokoko3k
Component: videoAssignee: Ryan C. Gordon <icculus>
Status: RESOLVED INVALID QA Contact: Sam Lantinga <slouken>
Severity: normal    
Priority: P2    
Version: 1.2.13   
Hardware: x86   
OS: Linux   

Description kokoko3k 2009-03-03 23:26:09 UTC
I use svgalib version 1.9.25 and sdl 1.2.13.
When i do:

SDL_VIDEODRIVER=svgalib sdlprogram

Sdl opens an 8bit screen and can't seems to be able to do more, this does not happens with other backends like xorg.
This leads to various errors in applications that needs a 16 or 24 bit color depth, like uae emulator, mysticmine demo, blobwars game and so on.
My svgalib installation is working properly because works very fine when not driven by sdl (no problem in opening 24bit screens under advancemame or with svgalib test programs).
Comment 1 kokoko3k 2009-03-04 03:32:01 UTC
I found the culprit in sdl programs, it is not an sdl bug and i apoligies for that.
They ask svgalib for the current bit depth before opening a new screen, and it seems that the answer is 8bit because... no svga screen is actually open.
Hardcoding a new bitdepth in that source code solves (somehow) the problem.