[SDL] SVGALib 2.0

Benjamin Joel Stover stovertech at intellisys.net
Mon Jun 11 18:37:30 PDT 2001


I sent something similar to this message a long time ago, but I don't think 
it ever appeared on the list, and I completely forgot about it.

If you haven't noticed, SVGALib 2.0 will soon be coming out.  The pre-2.0s 
are very stable, and they have an outstanding feature--they don't require 
root!  They use a kernel module.  Anyways, SDL has code to check whether the 
user is root or not, which in the new 2.0 series won't matter.  I have a 
patch I made a while back (so I don't know if it works with the latest CVS, 
but I don't think you've changed the code)--all it does is disable the 
root-checking part.

If you haven't checked out the latest SVGALib, do yourself a favor and do it 
at http://www.svgalib.org/.  It's a nice alternative now to FBCon, which I 
personally can't use because of incompatibilities between my NVidia FBCon and 
X11.  I'd use the FB driver but it lacks hardware-accelerated features.  
Anyways, when I last tested it, all the examples I tried worked (except of 
course the OpenGL one), so if someone will look at it (fix it up however you 
want), and commit it to CVS I'd be most grateful.  :-)

-- 
~StoverTech~
Benjamin Joel Stover
-------------- next part --------------
Index: src//video/svga/SDL_svgavideo.c
===================================================================
RCS file: /cvs/SDL/src/video/svga/SDL_svgavideo.c,v
retrieving revision 1.1.2.12
diff -u -r1.1.2.12 SDL_svgavideo.c
--- src//video/svga/SDL_svgavideo.c	2001/04/04 02:47:57	1.1.2.12
+++ src//video/svga/SDL_svgavideo.c	2001/04/21 19:53:49
@@ -88,7 +88,12 @@
 			console = -1;
 		}
 	}
-	return((geteuid() == 0) && (console >= 0));
+	return(
+/* This code is disabled because SVGALib 2.0 does not need root! */
+#if 0
+	 (geteuid() == 0) &&
+#endif
+	 (console >= 0));
 }
 
 static void SVGA_DeleteDevice(SDL_VideoDevice *device)


More information about the SDL mailing list