• Sam Lantinga's avatar
    Fixed bug #84 · 877556f5
    Sam Lantinga authored
    Date: Sun, 23 Oct 2005 16:39:03 +0200
    From: "A. Schmid" <sahib@phreaker.net>
    Subject: [SDL] no software surfaces with svgalib driver?
    
    Hi,
    
    I noticed that the SDL (1.2.9) svgalib driver only makes use of linear
    addressable (framebuffer) video modes. On older systems (like one of
    mine), linear addressable modes are often not available.
    Especially for cards with VESA VBE < 2.0 the svgalib vesa driver is
    unusable, since VESA only supports framebuffering for VBE 2.0 and later.
    
    The changes necessary to add support for software surfaces seem to be
    relatively small. I only had to hack src/video/svga/SDL_svgavideo.c (see
    attached patch). The code worked fine for me, but it is no more than a
    proof of concept and should be reviewed (probably has a memory leak when
    switching modes). It also uses the vgagl library (included in the
    svgalib package) and needs to be linked against it.
    
    -Alex
    
    --HG--
    extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401558
    877556f5
Name
Last commit
Last update
..
audio Loading commit data...
cdrom Loading commit data...
cpuinfo Loading commit data...
events Loading commit data...
file Loading commit data...
hermes Loading commit data...
joystick Loading commit data...
loadso Loading commit data...
main Loading commit data...
stdlib Loading commit data...
thread Loading commit data...
timer Loading commit data...
video Loading commit data...
.cvsignore Loading commit data...
SDL.c Loading commit data...
SDL_error.c Loading commit data...
SDL_error_c.h Loading commit data...
SDL_fatal.c Loading commit data...
SDL_fatal.h Loading commit data...