Mercurial > sdl-ios-xcode
diff src/video/nanox/SDL_nxvideo.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 | 99210400e8b9 |
line wrap: on
line diff
--- a/src/video/nanox/SDL_nxvideo.h Sun May 21 17:27:13 2006 +0000 +++ b/src/video/nanox/SDL_nxvideo.h Sun May 28 13:04:16 2006 +0000 @@ -42,36 +42,38 @@ #define _THIS SDL_VideoDevice * this // Private display data -typedef struct NX_SDL_VISUAL { - int bpp ; - Uint32 red_mask ; - Uint32 green_mask ; - Uint32 blue_mask ; -} nx_sdl_visual_t ; +typedef struct NX_SDL_VISUAL +{ + int bpp; + Uint32 red_mask; + Uint32 green_mask; + Uint32 blue_mask; +} nx_sdl_visual_t; -struct SDL_PrivateVideoData { - GR_WINDOW_ID SDL_Window ; - GR_WINDOW_ID FSwindow ; +struct SDL_PrivateVideoData +{ + GR_WINDOW_ID SDL_Window; + GR_WINDOW_ID FSwindow; // Flag: true if we have been passed a window - char * SDL_windowid ; - GR_GC_ID GC ; - unsigned char * Image ; - unsigned char * Image_buff ; /* for GrArea*/ - unsigned char * Clientfb; /* for DirectFB*/ - nx_sdl_visual_t SDL_Visual ; + char *SDL_windowid; + GR_GC_ID GC; + unsigned char *Image; + unsigned char *Image_buff; /* for GrArea */ + unsigned char *Clientfb; /* for DirectFB */ + nx_sdl_visual_t SDL_Visual; // The current list of available video modes - SDL_Rect ** modelist ; - int currently_fullscreen ; + SDL_Rect **modelist; + int currently_fullscreen; // for fullscreen - int OffsetX, OffsetY ; + int OffsetX, OffsetY; // for GammaRamp - Uint16 * GammaRamp_R, * GammaRamp_G, * GammaRamp_B ; + Uint16 *GammaRamp_R, *GammaRamp_G, *GammaRamp_B; // for GrArea, r_mask, g_mask, b_mask - int pixel_type ; + int pixel_type; #ifdef ENABLE_NANOX_DIRECT_FB GR_WINDOW_FB_INFO fbinfo; #endif -} ; +}; #define SDL_Window (this -> hidden -> SDL_Window) #define FSwindow (this -> hidden -> FSwindow) @@ -91,6 +93,7 @@ #define pixel_type (this -> hidden -> pixel_type) #define fbinfo (this -> hidden -> fbinfo) -#define CI_SIZE 256 // color index size +#define CI_SIZE 256 // color index size -#endif // _SDL_nxvideo_h +#endif // _SDL_nxvideo_h +/* vi: set ts=4 sw=4 expandtab: */