Mercurial > sdl-ios-xcode
diff src/video/ps2gs/SDL_gsvideo.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/ps2gs/SDL_gsvideo.h Sun May 21 17:27:13 2006 +0000 +++ b/src/video/ps2gs/SDL_gsvideo.h Sun May 28 13:04:16 2006 +0000 @@ -38,34 +38,35 @@ /* Private display data */ -struct SDL_PrivateVideoData { - /* Gotta love that simple PS2 graphics interface. :) */ - int console_fd; - int memory_fd; - struct ps2_screeninfo saved_vinfo; +struct SDL_PrivateVideoData +{ + /* Gotta love that simple PS2 graphics interface. :) */ + int console_fd; + int memory_fd; + struct ps2_screeninfo saved_vinfo; - /* Ye olde linux keyboard code */ - int current_vt; - int saved_vt; - int keyboard_fd; - int saved_kbd_mode; - struct termios saved_kbd_termios; + /* Ye olde linux keyboard code */ + int current_vt; + int saved_vt; + int keyboard_fd; + int saved_kbd_mode; + struct termios saved_kbd_termios; - /* Ye olde linux mouse code */ - int mouse_fd; - int cursor_drawn; + /* Ye olde linux mouse code */ + int mouse_fd; + int cursor_drawn; - /* The memory mapped DMA area and associated variables */ - caddr_t mapped_mem; - int pixels_len; - int mapped_len; - struct ps2_image screen_image; - int screen_image_size; - unsigned long long *head_tags_mem; - unsigned long long *image_tags_mem; - unsigned long long *tex_tags_mem; - unsigned long long *scale_tags_mem; - int dma_pending; + /* The memory mapped DMA area and associated variables */ + caddr_t mapped_mem; + int pixels_len; + int mapped_len; + struct ps2_image screen_image; + int screen_image_size; + unsigned long long *head_tags_mem; + unsigned long long *image_tags_mem; + unsigned long long *tex_tags_mem; + unsigned long long *scale_tags_mem; + int dma_pending; }; /* Old variable names */ #define console_fd (this->hidden->console_fd) @@ -90,6 +91,8 @@ #define dma_pending (this->hidden->dma_pending) /* Shared between the mouse and video code for screen update scaling */ -extern int scaleimage_nonblock(int fd, - unsigned long long *tm, unsigned long long *sm); +extern int scaleimage_nonblock (int fd, + unsigned long long *tm, + unsigned long long *sm); #endif /* _SDL_gsvideo_h */ +/* vi: set ts=4 sw=4 expandtab: */