From: Staffan Ulfberg <staffan@ulfberg.se>
Date: 19 Nov 2005 01:00:48 +0100
Subject: [SDL] New driver for OpenBSD/wscons

Hello,

I've written an SDL driver for OpenBSD/wscons (console mode, somewhat
resembling the functionality of the svga driver for Linux).  I use it
for playing MAME on my Sharp Zaurus.  The alternative is to play under
X, which is slower.

I asked how to submit the driver a few days ago, and posted a link to
the patch in a follow-up, so maybe it was missed?

Anyway, the patch is on the web at:

http://multivac.fatburen.org/SDL-wscons.patch

Comments?

Staffan

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401190
This commit is contained in:
Ryan C. Gordon 2005-11-22 15:19:50 +00:00
parent b744b23500
commit db57e4884f
12 changed files with 1200 additions and 1 deletions

View file

@ -1645,6 +1645,37 @@ CheckQtopia()
fi
}
dnl Set up the wscons video driver if enabled
CheckWscons()
{
AC_ARG_ENABLE(video-wscons,
[ --enable-video-wscons use wscons video driver [default=no]],
, enable_video_wscons=no)
if test x$enable_video = xyes -a x$enable_video_wscons = xyes; then
AC_MSG_CHECKING(for wscons support)
video_wscons=no
AC_LANG_C
AC_TRY_COMPILE([
#include <sys/time.h>
#include <dev/wscons/wsconsio.h>
],[
],[
video_wscons=yes
])
AC_MSG_RESULT($video_wscons)
if test x$video_wscons = xyes; then
CFLAGS="$CFLAGS -DENABLE_WSCONS"
VIDEO_SUBDIRS="$VIDEO_SUBDIRS wscons"
VIDEO_DRIVERS="$VIDEO_DRIVERS wscons/libvideo_wscons.la"
else
AC_MSG_ERROR([
*** Failed to find wscons includes.])
fi
AC_LANG_C
fi
}
dnl Set up the PicoGUI video driver if enabled
CheckPicoGUI()
{
@ -2210,6 +2241,7 @@ case "$target" in
CheckNAS
CheckX11
CheckAAlib
CheckWscons
CheckOpenGL
CheckPTHREAD
CheckSIGACTION
@ -3088,6 +3120,7 @@ src/video/photon/Makefile
src/video/picogui/Makefile
src/video/ps2gs/Makefile
src/video/qtopia/Makefile
src/video/wscons/Makefile
src/video/quartz/Makefile
src/video/riscos/Makefile
src/video/svga/Makefile