diff src/video/wscons/SDL_wsconsvideo.h @ 1662:782fd950bd46 SDL-1.3

Revamp of the video system in progress - adding support for multiple displays, multiple windows, and a full video mode selection API. WARNING: None of the video drivers have been updated for the new API yet! The API is still under design and very fluid. The code is now run through a consistent indent format: indent -i4 -nut -nsc -br -ce The headers are being converted to automatically generate doxygen documentation.
author Sam Lantinga <slouken@libsdl.org>
date Sun, 28 May 2006 13:04:16 +0000
parents d910939febfa
children 4da1ee79c9af
line wrap: on
line diff
--- a/src/video/wscons/SDL_wsconsvideo.h	Sun May 21 17:27:13 2006 +0000
+++ b/src/video/wscons/SDL_wsconsvideo.h	Sun May 28 13:04:16 2006 +0000
@@ -32,7 +32,7 @@
 #include "SDL_mutex.h"
 #include "../SDL_sysvideo.h"
 
-void WSCONS_ReportError(char *fmt, ...);
+void WSCONS_ReportError (char *fmt, ...);
 
 /* Hidden "this" pointer for the video functions */
 #define _THIS	SDL_VideoDevice *this
@@ -40,37 +40,36 @@
 
 /* Private display data */
 
-typedef void WSCONS_bitBlit(Uint8 *src_pos,
-			    int srcRightDelta, // pixels, not bytes
-			    int srcDownDelta,  // pixels, not bytes
-			    Uint8 *dst_pos,
-			    int dst_linebytes,
-			    int width,
-			    int height);
+typedef void WSCONS_bitBlit (Uint8 * src_pos, int srcRightDelta,        // pixels, not bytes
+                             int srcDownDelta,  // pixels, not bytes
+                             Uint8 * dst_pos,
+                             int dst_linebytes, int width, int height);
 
-struct SDL_PrivateVideoData {
-  int fd;                       /* file descriptor of open device */
-  struct wsdisplay_fbinfo info; /* frame buffer characteristics */
-  int physlinebytes;            /* number of bytes per row */
-  int redMask, greenMask, blueMask;
+struct SDL_PrivateVideoData
+{
+    int fd;                     /* file descriptor of open device */
+    struct wsdisplay_fbinfo info;       /* frame buffer characteristics */
+    int physlinebytes;          /* number of bytes per row */
+    int redMask, greenMask, blueMask;
 
-  Uint8 *fbstart;               /* These refer to the surface used, */
-  int fblinebytes;              /* physical frame buffer or shadow. */
+    Uint8 *fbstart;             /* These refer to the surface used, */
+    int fblinebytes;            /* physical frame buffer or shadow. */
 
-  size_t fbmem_len;
-  Uint8 *physmem;
-  Uint8 *shadowmem;
-  int rotate;
-  int shadowFB;                 /* Tells whether a shadow is being used. */
+    size_t fbmem_len;
+    Uint8 *physmem;
+    Uint8 *shadowmem;
+    int rotate;
+    int shadowFB;               /* Tells whether a shadow is being used. */
 
-  WSCONS_bitBlit *blitFunc;
+    WSCONS_bitBlit *blitFunc;
 
-  SDL_Rect *SDL_modelist[2];
+    SDL_Rect *SDL_modelist[2];
 
-  unsigned int kbdType;
-  int did_save_tty;
-  struct termios saved_tty;
+    unsigned int kbdType;
+    int did_save_tty;
+    struct termios saved_tty;
 };
 
 
 #endif /* _SDL_wsconsvideo_h */
+/* vi: set ts=4 sw=4 expandtab: */