src/video/SDL_sysvideo.h
author Ryan C. Gordon <icculus@icculus.org>
Tue, 22 Nov 2005 15:19:50 +0000
changeset 1187 19d8949b4584
parent 1140 af8b0f9ac2f4
child 1190 173c063d4f55
permissions -rw-r--r--
To: sdl@libsdl.org
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
slouken@0
     1
/*
slouken@0
     2
    SDL - Simple DirectMedia Layer
slouken@769
     3
    Copyright (C) 1997-2004 Sam Lantinga
slouken@0
     4
slouken@0
     5
    This library is free software; you can redistribute it and/or
slouken@0
     6
    modify it under the terms of the GNU Library General Public
slouken@0
     7
    License as published by the Free Software Foundation; either
slouken@0
     8
    version 2 of the License, or (at your option) any later version.
slouken@0
     9
slouken@0
    10
    This library is distributed in the hope that it will be useful,
slouken@0
    11
    but WITHOUT ANY WARRANTY; without even the implied warranty of
slouken@0
    12
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
slouken@0
    13
    Library General Public License for more details.
slouken@0
    14
slouken@0
    15
    You should have received a copy of the GNU Library General Public
slouken@0
    16
    License along with this library; if not, write to the Free
slouken@0
    17
    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
slouken@0
    18
slouken@0
    19
    Sam Lantinga
slouken@252
    20
    slouken@libsdl.org
slouken@0
    21
*/
slouken@0
    22
slouken@0
    23
#ifdef SAVE_RCSID
slouken@0
    24
static char rcsid =
slouken@0
    25
 "@(#) $Id$";
slouken@0
    26
#endif
slouken@0
    27
slouken@0
    28
#ifndef _SDL_sysvideo_h
slouken@0
    29
#define _SDL_sysvideo_h
slouken@0
    30
slouken@0
    31
#include "SDL_mouse.h"
slouken@0
    32
#define SDL_PROTOTYPES_ONLY
slouken@0
    33
#include "SDL_syswm.h"
slouken@0
    34
#undef SDL_PROTOTYPES_ONLY
slouken@0
    35
slouken@0
    36
/* This file prototypes the video driver implementation.
slouken@0
    37
   This is designed to be easily converted to C++ in the future.
slouken@0
    38
 */
slouken@0
    39
slouken@0
    40
/* OpenGL is pretty much available on all Windows systems */
slouken@0
    41
#ifdef WIN32
slouken@0
    42
#ifndef _WIN32_WCE
slouken@0
    43
#define HAVE_OPENGL
slouken@0
    44
#endif
slouken@453
    45
#define WIN32_LEAN_AND_MEAN
slouken@0
    46
#include <windows.h>
slouken@0
    47
#endif
slouken@0
    48
slouken@0
    49
#ifdef HAVE_OPENGL
slouken@0
    50
#ifdef MACOSX
slouken@0
    51
#include <OpenGL/gl.h>  /* OpenGL.framework */
slouken@0
    52
#else
slouken@0
    53
#include <GL/gl.h>
slouken@0
    54
#endif /* MACOSX */
slouken@0
    55
#endif /* HAVE_OPENGL */
slouken@0
    56
slouken@0
    57
/* The SDL video driver */
slouken@0
    58
typedef struct SDL_VideoDevice SDL_VideoDevice;
slouken@0
    59
slouken@0
    60
/* Define the SDL video driver structure */
slouken@0
    61
#define _THIS	SDL_VideoDevice *_this
slouken@0
    62
#ifndef _STATUS
slouken@0
    63
#define _STATUS	SDL_status *status
slouken@0
    64
#endif
slouken@0
    65
struct SDL_VideoDevice {
slouken@0
    66
	/* * * */
slouken@47
    67
	/* The name of this video driver */
slouken@0
    68
	const char *name;
slouken@0
    69
slouken@0
    70
	/* * * */
slouken@0
    71
	/* Initialization/Query functions */
slouken@0
    72
slouken@0
    73
	/* Initialize the native video subsystem, filling 'vformat' with the 
slouken@0
    74
	   "best" display pixel format, returning 0 or -1 if there's an error.
slouken@0
    75
	 */
slouken@0
    76
	int (*VideoInit)(_THIS, SDL_PixelFormat *vformat);
slouken@0
    77
slouken@0
    78
	/* List the available video modes for the given pixel format, sorted
slouken@0
    79
	   from largest to smallest.
slouken@0
    80
	 */
slouken@0
    81
	SDL_Rect **(*ListModes)(_THIS, SDL_PixelFormat *format, Uint32 flags);
slouken@0
    82
slouken@0
    83
	/* Set the requested video mode, returning a surface which will be
slouken@0
    84
	   set to the SDL_VideoSurface.  The width and height will already
slouken@0
    85
	   be verified by ListModes(), and the video subsystem is free to
slouken@0
    86
	   set the mode to a supported bit depth different from the one
slouken@0
    87
	   specified -- the desired bpp will be emulated with a shadow
slouken@0
    88
	   surface if necessary.  If a new mode is returned, this function
slouken@0
    89
	   should take care of cleaning up the current mode.
slouken@0
    90
	 */
slouken@0
    91
	SDL_Surface *(*SetVideoMode)(_THIS, SDL_Surface *current,
slouken@0
    92
				int width, int height, int bpp, Uint32 flags);
slouken@0
    93
slouken@0
    94
	/* Toggle the fullscreen mode */
slouken@0
    95
	int (*ToggleFullScreen)(_THIS, int on);
slouken@0
    96
slouken@0
    97
	/* This is called after the video mode has been set, to get the
slouken@0
    98
	   initial mouse state.  It should queue events as necessary to
slouken@0
    99
	   properly represent the current mouse focus and position.
slouken@0
   100
	 */
slouken@0
   101
	void (*UpdateMouse)(_THIS);
slouken@0
   102
slouken@0
   103
	/* Create a YUV video surface (possibly overlay) of the given
slouken@0
   104
	   format.  The hardware should be able to perform at least 2x
slouken@0
   105
	   scaling on display.
slouken@0
   106
	 */
slouken@0
   107
	SDL_Overlay *(*CreateYUVOverlay)(_THIS, int width, int height,
slouken@0
   108
	                                 Uint32 format, SDL_Surface *display);
slouken@0
   109
slouken@0
   110
        /* Sets the color entries { firstcolor .. (firstcolor+ncolors-1) }
slouken@0
   111
	   of the physical palette to those in 'colors'. If the device is
slouken@0
   112
	   using a software palette (SDL_HWPALETTE not set), then the
slouken@0
   113
	   changes are reflected in the logical palette of the screen
slouken@0
   114
	   as well.
slouken@0
   115
	   The return value is 1 if all entries could be set properly
slouken@0
   116
	   or 0 otherwise.
slouken@0
   117
	*/
slouken@0
   118
	int (*SetColors)(_THIS, int firstcolor, int ncolors,
slouken@0
   119
			 SDL_Color *colors);
slouken@0
   120
slouken@0
   121
	/* This pointer should exist in the native video subsystem and should
slouken@0
   122
	   point to an appropriate update function for the current video mode
slouken@0
   123
	 */
slouken@0
   124
	void (*UpdateRects)(_THIS, int numrects, SDL_Rect *rects);
slouken@0
   125
slouken@0
   126
	/* Reverse the effects VideoInit() -- called if VideoInit() fails
slouken@0
   127
	   or if the application is shutting down the video subsystem.
slouken@0
   128
	*/
slouken@0
   129
	void (*VideoQuit)(_THIS);
slouken@0
   130
slouken@0
   131
	/* * * */
slouken@0
   132
	/* Hardware acceleration functions */
slouken@0
   133
slouken@0
   134
	/* Information about the video hardware */
slouken@0
   135
	SDL_VideoInfo info;
slouken@0
   136
icculus@1052
   137
	/* The pixel format used when SDL_CreateRGBSurface creates SDL_HWSURFACEs with alpha */
icculus@1052
   138
	SDL_PixelFormat* displayformatalphapixel;
icculus@1052
   139
	
slouken@0
   140
	/* Allocates a surface in video memory */
slouken@0
   141
	int (*AllocHWSurface)(_THIS, SDL_Surface *surface);
slouken@0
   142
slouken@0
   143
	/* Sets the hardware accelerated blit function, if any, based
slouken@0
   144
	   on the current flags of the surface (colorkey, alpha, etc.)
slouken@0
   145
	 */
slouken@0
   146
	int (*CheckHWBlit)(_THIS, SDL_Surface *src, SDL_Surface *dst);
slouken@0
   147
slouken@0
   148
	/* Fills a surface rectangle with the given color */
slouken@0
   149
	int (*FillHWRect)(_THIS, SDL_Surface *dst, SDL_Rect *rect, Uint32 color);
slouken@0
   150
slouken@0
   151
	/* Sets video mem colorkey and accelerated blit function */
slouken@0
   152
	int (*SetHWColorKey)(_THIS, SDL_Surface *surface, Uint32 key);
slouken@0
   153
slouken@0
   154
	/* Sets per surface hardware alpha value */
slouken@0
   155
	int (*SetHWAlpha)(_THIS, SDL_Surface *surface, Uint8 value);
slouken@0
   156
slouken@0
   157
	/* Returns a readable/writable surface */
slouken@0
   158
	int (*LockHWSurface)(_THIS, SDL_Surface *surface);
slouken@0
   159
	void (*UnlockHWSurface)(_THIS, SDL_Surface *surface);
slouken@0
   160
slouken@0
   161
	/* Performs hardware flipping */
slouken@0
   162
	int (*FlipHWSurface)(_THIS, SDL_Surface *surface);
slouken@0
   163
slouken@0
   164
	/* Frees a previously allocated video surface */
slouken@0
   165
	void (*FreeHWSurface)(_THIS, SDL_Surface *surface);
slouken@0
   166
slouken@0
   167
	/* * * */
slouken@0
   168
	/* Gamma support */
slouken@0
   169
slouken@0
   170
	Uint16 *gamma;
slouken@0
   171
slouken@0
   172
	/* Set the gamma correction directly (emulated with gamma ramps) */
slouken@0
   173
	int (*SetGamma)(_THIS, float red, float green, float blue);
slouken@0
   174
slouken@0
   175
	/* Get the gamma correction directly (emulated with gamma ramps) */
slouken@0
   176
	int (*GetGamma)(_THIS, float *red, float *green, float *blue);
slouken@0
   177
slouken@0
   178
	/* Set the gamma ramp */
slouken@0
   179
	int (*SetGammaRamp)(_THIS, Uint16 *ramp);
slouken@0
   180
slouken@0
   181
	/* Get the gamma ramp */
slouken@0
   182
	int (*GetGammaRamp)(_THIS, Uint16 *ramp);
slouken@0
   183
slouken@0
   184
	/* * * */
slouken@0
   185
	/* OpenGL support */
slouken@0
   186
slouken@0
   187
	/* Sets the dll to use for OpenGL and loads it */
slouken@0
   188
	int (*GL_LoadLibrary)(_THIS, const char *path);
slouken@0
   189
slouken@0
   190
	/* Retrieves the address of a function in the gl library */
slouken@0
   191
	void* (*GL_GetProcAddress)(_THIS, const char *proc);
slouken@0
   192
slouken@0
   193
        /* Get attribute information from the windowing system. */
slouken@0
   194
        int (*GL_GetAttribute)(_THIS, SDL_GLattr attrib, int* value);
slouken@0
   195
slouken@0
   196
        /* Make the context associated with this driver current */
slouken@0
   197
        int (*GL_MakeCurrent)(_THIS);
slouken@0
   198
slouken@0
   199
	/* Swap the current buffers in double buffer mode. */
slouken@0
   200
	void (*GL_SwapBuffers)(_THIS);
slouken@0
   201
slouken@0
   202
  	/* OpenGL functions for SDL_OPENGLBLIT */
slouken@0
   203
#ifdef HAVE_OPENGL
slouken@0
   204
#ifndef WIN32
slouken@0
   205
#define WINAPI
slouken@0
   206
#endif
slouken@0
   207
#define SDL_PROC(ret,func,params) ret (WINAPI *func) params;
slouken@0
   208
#include "SDL_glfuncs.h"
slouken@0
   209
#undef SDL_PROC
slouken@0
   210
slouken@0
   211
	/* Texture id */
slouken@0
   212
	GLuint texture;
slouken@0
   213
#endif
slouken@0
   214
	int is_32bit;
slouken@0
   215
 
slouken@0
   216
	/* * * */
slouken@0
   217
	/* Window manager functions */
slouken@0
   218
slouken@0
   219
	/* Set the title and icon text */
slouken@0
   220
	void (*SetCaption)(_THIS, const char *title, const char *icon);
slouken@0
   221
slouken@0
   222
	/* Set the window icon image */
slouken@0
   223
	void (*SetIcon)(_THIS, SDL_Surface *icon, Uint8 *mask);
slouken@0
   224
slouken@0
   225
	/* Iconify the window.
slouken@0
   226
	   This function returns 1 if there is a window manager and the
slouken@0
   227
	   window was actually iconified, it returns 0 otherwise.
slouken@0
   228
	*/
slouken@0
   229
	int (*IconifyWindow)(_THIS);
slouken@0
   230
slouken@0
   231
	/* Grab or ungrab keyboard and mouse input */
slouken@0
   232
	SDL_GrabMode (*GrabInput)(_THIS, SDL_GrabMode mode);
slouken@0
   233
slouken@0
   234
	/* Get some platform dependent window information */
slouken@0
   235
	int (*GetWMInfo)(_THIS, SDL_SysWMinfo *info);
slouken@0
   236
slouken@0
   237
	/* * * */
slouken@0
   238
	/* Cursor manager functions */
slouken@0
   239
slouken@0
   240
	/* Free a window manager cursor
slouken@0
   241
	   This function can be NULL if CreateWMCursor is also NULL.
slouken@0
   242
	 */
slouken@0
   243
	void (*FreeWMCursor)(_THIS, WMcursor *cursor);
slouken@0
   244
slouken@0
   245
	/* If not NULL, create a black/white window manager cursor */
slouken@0
   246
	WMcursor *(*CreateWMCursor)(_THIS,
slouken@0
   247
		Uint8 *data, Uint8 *mask, int w, int h, int hot_x, int hot_y);
slouken@0
   248
slouken@0
   249
	/* Show the specified cursor, or hide if cursor is NULL */
slouken@0
   250
	int (*ShowWMCursor)(_THIS, WMcursor *cursor);
slouken@0
   251
slouken@0
   252
	/* Warp the window manager cursor to (x,y)
slouken@0
   253
	   If NULL, a mouse motion event is posted internally.
slouken@0
   254
	 */
slouken@0
   255
	void (*WarpWMCursor)(_THIS, Uint16 x, Uint16 y);
slouken@0
   256
slouken@0
   257
	/* If not NULL, this is called when a mouse motion event occurs */
slouken@0
   258
	void (*MoveWMCursor)(_THIS, int x, int y);
slouken@0
   259
slouken@0
   260
	/* Determine whether the mouse should be in relative mode or not.
slouken@0
   261
	   This function is called when the input grab state or cursor
slouken@0
   262
	   visibility state changes.
slouken@0
   263
	   If the cursor is not visible, and the input is grabbed, the
slouken@0
   264
	   driver can place the mouse in relative mode, which may result
slouken@0
   265
	   in higher accuracy sampling of the pointer motion.
slouken@0
   266
	*/
slouken@0
   267
	void (*CheckMouseMode)(_THIS);
slouken@0
   268
slouken@0
   269
	/* * * */
slouken@0
   270
	/* Event manager functions */
slouken@0
   271
slouken@0
   272
	/* Initialize keyboard mapping for this driver */
slouken@0
   273
	void (*InitOSKeymap)(_THIS);
slouken@0
   274
slouken@0
   275
	/* Handle any queued OS events */
slouken@0
   276
	void (*PumpEvents)(_THIS);
slouken@0
   277
slouken@0
   278
	/* * * */
slouken@0
   279
	/* Data common to all drivers */
slouken@0
   280
	SDL_Surface *screen;
slouken@0
   281
	SDL_Surface *shadow;
slouken@0
   282
	SDL_Surface *visible;
slouken@0
   283
        SDL_Palette *physpal;	/* physical palette, if != logical palette */
slouken@0
   284
        SDL_Color *gammacols;	/* gamma-corrected colours, or NULL */
slouken@0
   285
	char *wm_title;
slouken@0
   286
	char *wm_icon;
slouken@0
   287
	int offset_x;
slouken@0
   288
	int offset_y;
slouken@0
   289
	SDL_GrabMode input_grab;
slouken@0
   290
slouken@0
   291
	/* Driver information flags */
slouken@0
   292
	int handles_any_size;	/* Driver handles any size video mode */
slouken@0
   293
slouken@0
   294
	/* * * */
slouken@0
   295
	/* Data used by the GL drivers */
slouken@0
   296
	struct {
slouken@0
   297
		int red_size;
slouken@0
   298
		int green_size;
slouken@0
   299
		int blue_size;
slouken@0
   300
		int alpha_size;
slouken@0
   301
		int depth_size;
slouken@450
   302
		int buffer_size;
slouken@0
   303
		int stencil_size;
slouken@0
   304
		int double_buffer;
slouken@450
   305
		int accum_red_size;
slouken@450
   306
		int accum_green_size;
slouken@450
   307
		int accum_blue_size;
slouken@450
   308
		int accum_alpha_size;
slouken@450
   309
		int stereo;
slouken@656
   310
		int multisamplebuffers;
slouken@656
   311
		int multisamplesamples;
slouken@0
   312
		int driver_loaded;
slouken@0
   313
		char driver_path[256];
slouken@0
   314
		void* dll_handle;
slouken@0
   315
	} gl_config;
slouken@0
   316
slouken@0
   317
	/* * * */
slouken@0
   318
	/* Data private to this driver */
slouken@0
   319
	struct SDL_PrivateVideoData *hidden;
slouken@0
   320
	struct SDL_PrivateGLData *gl_data;
slouken@0
   321
slouken@0
   322
	/* * * */
slouken@0
   323
	/* The function used to dispose of this structure */
slouken@0
   324
	void (*free)(_THIS);
slouken@0
   325
};
slouken@0
   326
#undef _THIS
slouken@0
   327
slouken@0
   328
typedef struct VideoBootStrap {
slouken@0
   329
	const char *name;
slouken@0
   330
	const char *desc;
slouken@0
   331
	int (*available)(void);
slouken@0
   332
	SDL_VideoDevice *(*create)(int devindex);
slouken@0
   333
} VideoBootStrap;
slouken@0
   334
slouken@0
   335
#ifdef ENABLE_X11
slouken@0
   336
extern VideoBootStrap X11_bootstrap;
slouken@0
   337
#endif
slouken@0
   338
#ifdef ENABLE_DGA
slouken@0
   339
extern VideoBootStrap DGA_bootstrap;
slouken@0
   340
#endif
slouken@30
   341
#ifdef ENABLE_NANOX
slouken@30
   342
extern VideoBootStrap NX_bootstrap;
slouken@30
   343
#endif
icculus@1140
   344
#ifdef ENABLE_IPOD
icculus@1140
   345
extern VideoBootStrap iPod_bootstrap;
icculus@1140
   346
#endif
slouken@0
   347
#ifdef ENABLE_FBCON
slouken@0
   348
extern VideoBootStrap FBCON_bootstrap;
slouken@0
   349
#endif
slouken@167
   350
#ifdef ENABLE_DIRECTFB
slouken@167
   351
extern VideoBootStrap DirectFB_bootstrap;
slouken@167
   352
#endif
slouken@0
   353
#ifdef ENABLE_PS2GS
slouken@0
   354
extern VideoBootStrap PS2GS_bootstrap;
slouken@0
   355
#endif
slouken@0
   356
#ifdef ENABLE_GGI
slouken@0
   357
extern VideoBootStrap GGI_bootstrap;
slouken@0
   358
#endif
slouken@75
   359
#ifdef ENABLE_VGL
slouken@75
   360
extern VideoBootStrap VGL_bootstrap;
slouken@75
   361
#endif
slouken@0
   362
#ifdef ENABLE_SVGALIB
slouken@0
   363
extern VideoBootStrap SVGALIB_bootstrap;
slouken@0
   364
#endif
slouken@0
   365
#ifdef ENABLE_AALIB
slouken@0
   366
extern VideoBootStrap AALIB_bootstrap;
slouken@0
   367
#endif
slouken@0
   368
#ifdef ENABLE_WINDIB
slouken@0
   369
extern VideoBootStrap WINDIB_bootstrap;
slouken@0
   370
#endif
slouken@0
   371
#ifdef ENABLE_DIRECTX
slouken@0
   372
extern VideoBootStrap DIRECTX_bootstrap;
slouken@0
   373
#endif
slouken@0
   374
#ifdef ENABLE_BWINDOW
slouken@0
   375
extern VideoBootStrap BWINDOW_bootstrap;
slouken@0
   376
#endif
slouken@0
   377
/* MacOS X gets the proper defines from configure */
slouken@0
   378
#if defined(macintosh) && !defined(MACOSX)
slouken@0
   379
#define ENABLE_TOOLBOX
slouken@0
   380
#if !TARGET_API_MAC_CARBON
slouken@0
   381
#define ENABLE_DRAWSPROCKET
slouken@0
   382
#endif
slouken@0
   383
#endif
slouken@0
   384
#ifdef ENABLE_TOOLBOX
slouken@0
   385
extern VideoBootStrap TOOLBOX_bootstrap;
slouken@0
   386
#endif
slouken@0
   387
#ifdef ENABLE_DRAWSPROCKET
slouken@0
   388
extern VideoBootStrap DSp_bootstrap;
slouken@0
   389
#endif
slouken@47
   390
#ifdef ENABLE_QUARTZ
slouken@47
   391
extern VideoBootStrap QZ_bootstrap;
slouken@47
   392
#endif
slouken@0
   393
#ifdef ENABLE_CYBERGRAPHICS
slouken@0
   394
extern VideoBootStrap CGX_bootstrap;
slouken@0
   395
#endif
slouken@173
   396
#ifdef ENABLE_PHOTON
slouken@173
   397
extern VideoBootStrap ph_bootstrap;
slouken@173
   398
#endif
slouken@173
   399
#ifdef ENABLE_EPOC
slouken@173
   400
extern VideoBootStrap EPOC_bootstrap;
slouken@173
   401
#endif
slouken@173
   402
#ifdef ENABLE_DUMMYVIDEO
slouken@173
   403
extern VideoBootStrap DUMMY_bootstrap;
slouken@173
   404
#endif
slouken@281
   405
#ifdef ENABLE_XBIOS
slouken@281
   406
extern VideoBootStrap XBIOS_bootstrap;
slouken@281
   407
#endif
slouken@281
   408
#ifdef ENABLE_GEM
slouken@281
   409
extern VideoBootStrap GEM_bootstrap;
slouken@281
   410
#endif
slouken@371
   411
#ifdef ENABLE_QTOPIA
slouken@371
   412
extern VideoBootStrap Qtopia_bootstrap;
slouken@371
   413
#endif
icculus@1187
   414
#ifdef ENABLE_WSCONS
icculus@1187
   415
extern VideoBootStrap WSCONS_bootstrap;
icculus@1187
   416
#endif
slouken@433
   417
#ifdef ENABLE_PICOGUI
slouken@433
   418
extern VideoBootStrap PG_bootstrap;
slouken@433
   419
#endif
slouken@509
   420
#ifdef ENABLE_DC
slouken@509
   421
extern VideoBootStrap DC_bootstrap;
slouken@509
   422
#endif
slouken@630
   423
#ifdef ENABLE_RISCOS
slouken@630
   424
extern VideoBootStrap RISCOS_bootstrap;
slouken@630
   425
#endif
slouken@0
   426
/* This is the current video device */
slouken@0
   427
extern SDL_VideoDevice *current_video;
slouken@0
   428
slouken@0
   429
#define SDL_VideoSurface	(current_video->screen)
slouken@0
   430
#define SDL_ShadowSurface	(current_video->shadow)
slouken@0
   431
#define SDL_PublicSurface	(current_video->visible)
slouken@0
   432
slouken@0
   433
#endif /* _SDL_sysvideo_h */