comparison src/video/ps2gs/SDL_gsvideo.h @ 1895:c121d94672cb

SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
author Sam Lantinga <slouken@libsdl.org>
date Mon, 10 Jul 2006 21:04:37 +0000
parents d910939febfa
children 99210400e8b9
comparison
equal deleted inserted replaced
1894:c69cee13dd76 1895:c121d94672cb
36 /* Hidden "this" pointer for the video functions */ 36 /* Hidden "this" pointer for the video functions */
37 #define _THIS SDL_VideoDevice *this 37 #define _THIS SDL_VideoDevice *this
38 38
39 39
40 /* Private display data */ 40 /* Private display data */
41 struct SDL_PrivateVideoData { 41 struct SDL_PrivateVideoData
42 /* Gotta love that simple PS2 graphics interface. :) */ 42 {
43 int console_fd; 43 /* Gotta love that simple PS2 graphics interface. :) */
44 int memory_fd; 44 int console_fd;
45 struct ps2_screeninfo saved_vinfo; 45 int memory_fd;
46 struct ps2_screeninfo saved_vinfo;
46 47
47 /* Ye olde linux keyboard code */ 48 /* Ye olde linux keyboard code */
48 int current_vt; 49 int current_vt;
49 int saved_vt; 50 int saved_vt;
50 int keyboard_fd; 51 int keyboard_fd;
51 int saved_kbd_mode; 52 int saved_kbd_mode;
52 struct termios saved_kbd_termios; 53 struct termios saved_kbd_termios;
53 54
54 /* Ye olde linux mouse code */ 55 /* Ye olde linux mouse code */
55 int mouse_fd; 56 int mouse_fd;
56 int cursor_drawn; 57 int cursor_drawn;
57 58
58 /* The memory mapped DMA area and associated variables */ 59 /* The memory mapped DMA area and associated variables */
59 caddr_t mapped_mem; 60 caddr_t mapped_mem;
60 int pixels_len; 61 int pixels_len;
61 int mapped_len; 62 int mapped_len;
62 struct ps2_image screen_image; 63 struct ps2_image screen_image;
63 int screen_image_size; 64 int screen_image_size;
64 unsigned long long *head_tags_mem; 65 unsigned long long *head_tags_mem;
65 unsigned long long *image_tags_mem; 66 unsigned long long *image_tags_mem;
66 unsigned long long *tex_tags_mem; 67 unsigned long long *tex_tags_mem;
67 unsigned long long *scale_tags_mem; 68 unsigned long long *scale_tags_mem;
68 int dma_pending; 69 int dma_pending;
69 }; 70 };
70 /* Old variable names */ 71 /* Old variable names */
71 #define console_fd (this->hidden->console_fd) 72 #define console_fd (this->hidden->console_fd)
72 #define memory_fd (this->hidden->memory_fd) 73 #define memory_fd (this->hidden->memory_fd)
73 #define saved_vinfo (this->hidden->saved_vinfo) 74 #define saved_vinfo (this->hidden->saved_vinfo)
89 #define scale_tags_mem (this->hidden->scale_tags_mem) 90 #define scale_tags_mem (this->hidden->scale_tags_mem)
90 #define dma_pending (this->hidden->dma_pending) 91 #define dma_pending (this->hidden->dma_pending)
91 92
92 /* Shared between the mouse and video code for screen update scaling */ 93 /* Shared between the mouse and video code for screen update scaling */
93 extern int scaleimage_nonblock(int fd, 94 extern int scaleimage_nonblock(int fd,
94 unsigned long long *tm, unsigned long long *sm); 95 unsigned long long *tm,
96 unsigned long long *sm);
95 #endif /* _SDL_gsvideo_h */ 97 #endif /* _SDL_gsvideo_h */
98 /* vi: set ts=4 sw=4 expandtab: */