Mercurial > sdl-ios-xcode
comparison src/video/wscons/SDL_wsconsvideo.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 |
---|---|
38 #define _THIS SDL_VideoDevice *this | 38 #define _THIS SDL_VideoDevice *this |
39 #define private (this->hidden) | 39 #define private (this->hidden) |
40 | 40 |
41 /* Private display data */ | 41 /* Private display data */ |
42 | 42 |
43 typedef void WSCONS_bitBlit(Uint8 *src_pos, | 43 typedef void WSCONS_bitBlit(Uint8 * src_pos, int srcRightDelta, // pixels, not bytes |
44 int srcRightDelta, // pixels, not bytes | 44 int srcDownDelta, // pixels, not bytes |
45 int srcDownDelta, // pixels, not bytes | 45 Uint8 * dst_pos, |
46 Uint8 *dst_pos, | 46 int dst_linebytes, int width, int height); |
47 int dst_linebytes, | |
48 int width, | |
49 int height); | |
50 | 47 |
51 struct SDL_PrivateVideoData { | 48 struct SDL_PrivateVideoData |
52 int fd; /* file descriptor of open device */ | 49 { |
53 struct wsdisplay_fbinfo info; /* frame buffer characteristics */ | 50 int fd; /* file descriptor of open device */ |
54 int physlinebytes; /* number of bytes per row */ | 51 struct wsdisplay_fbinfo info; /* frame buffer characteristics */ |
55 int redMask, greenMask, blueMask; | 52 int physlinebytes; /* number of bytes per row */ |
53 int redMask, greenMask, blueMask; | |
56 | 54 |
57 Uint8 *fbstart; /* These refer to the surface used, */ | 55 Uint8 *fbstart; /* These refer to the surface used, */ |
58 int fblinebytes; /* physical frame buffer or shadow. */ | 56 int fblinebytes; /* physical frame buffer or shadow. */ |
59 | 57 |
60 size_t fbmem_len; | 58 size_t fbmem_len; |
61 Uint8 *physmem; | 59 Uint8 *physmem; |
62 Uint8 *shadowmem; | 60 Uint8 *shadowmem; |
63 int rotate; | 61 int rotate; |
64 int shadowFB; /* Tells whether a shadow is being used. */ | 62 int shadowFB; /* Tells whether a shadow is being used. */ |
65 | 63 |
66 WSCONS_bitBlit *blitFunc; | 64 WSCONS_bitBlit *blitFunc; |
67 | 65 |
68 SDL_Rect *SDL_modelist[2]; | 66 SDL_Rect *SDL_modelist[2]; |
69 | 67 |
70 unsigned int kbdType; | 68 unsigned int kbdType; |
71 int did_save_tty; | 69 int did_save_tty; |
72 struct termios saved_tty; | 70 struct termios saved_tty; |
73 }; | 71 }; |
74 | 72 |
75 | 73 |
76 #endif /* _SDL_wsconsvideo_h */ | 74 #endif /* _SDL_wsconsvideo_h */ |
75 /* vi: set ts=4 sw=4 expandtab: */ |