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 - svgalib backend 8 bit depth only
Summary: svgalib backend 8 bit depth only
Status: RESOLVED INVALID
Alias: None
Product: SDL
Classification: Unclassified
Component: video (show other bugs)
Version: 1.2.13
Hardware: x86 Linux
: P2 normal
Assignee: Ryan C. Gordon
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-03-03 23:26 UTC by kokoko3k
Modified: 2009-03-04 03:32 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.