comparison configure.in @ 1555:780fd5b61df1

Fixed bug #89 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
author Sam Lantinga <slouken@libsdl.org>
date Sun, 19 Mar 2006 12:05:16 +0000
parents 31c2b8e4885e
children 011b633fa0c9
comparison
equal deleted inserted replaced
1554:0ca607a5d173 1555:780fd5b61df1
1062 dnl Find the SVGAlib includes and libraries 1062 dnl Find the SVGAlib includes and libraries
1063 CheckSVGA() 1063 CheckSVGA()
1064 { 1064 {
1065 AC_ARG_ENABLE(video-svga, 1065 AC_ARG_ENABLE(video-svga,
1066 AC_HELP_STRING([--enable-video-svga], [use SVGAlib video driver [default=no]]), 1066 AC_HELP_STRING([--enable-video-svga], [use SVGAlib video driver [default=no]]),
1067 , enable_video_svga=no) 1067 , enable_video_svga=yes)
1068 if test x$enable_video = xyes -a x$enable_video_svga = xyes; then 1068 if test x$enable_video = xyes -a x$enable_video_svga = xyes; then
1069 AC_MSG_CHECKING(for SVGAlib (1.4.0+) support) 1069 AC_MSG_CHECKING(for SVGAlib (1.4.0+) support)
1070 video_svga=no 1070 video_svga=no
1071 AC_TRY_COMPILE([ 1071 AC_TRY_COMPILE([
1072 #include <vga.h> 1072 #include <vga.h>
1073 #include <vgamouse.h> 1073 #include <vgamouse.h>
1074 #include <vgakeyboard.h> 1074 #include <vgakeyboard.h>
1075 #include <vgagl.h>
1075 ],[ 1076 ],[
1076 if ( SCANCODE_RIGHTWIN && SCANCODE_LEFTWIN ) { 1077 if ( SCANCODE_RIGHTWIN && SCANCODE_LEFTWIN ) {
1077 exit(0); 1078 exit(0);
1078 } 1079 }
1079 ],[ 1080 ],[
1081 ]) 1082 ])
1082 AC_MSG_RESULT($video_svga) 1083 AC_MSG_RESULT($video_svga)
1083 if test x$video_svga = xyes; then 1084 if test x$video_svga = xyes; then
1084 AC_DEFINE(SDL_VIDEO_DRIVER_SVGALIB) 1085 AC_DEFINE(SDL_VIDEO_DRIVER_SVGALIB)
1085 SOURCES="$SOURCES $srcdir/src/video/svga/*.c" 1086 SOURCES="$SOURCES $srcdir/src/video/svga/*.c"
1086 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lvga" 1087 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lvga -lvgagl"
1087 have_video=yes 1088 have_video=yes
1088 fi 1089 fi
1089 fi 1090 fi
1090 } 1091 }
1091 1092