comparison src/video/bwindow/SDL_lowvideo.h @ 756:10332c6fad2e

te: Mon, 15 Dec 2003 08:25:14 -0800 PST From: "Andrew Bachmann" Subject: libSDL patches for beos video I created some patches to SDL: 1. YUV overlay support 2. maintain high refresh rate when changing resolutions to a lower resolution
author Sam Lantinga <slouken@libsdl.org>
date Tue, 16 Dec 2003 13:04:44 +0000
parents f6ffac90895c
children b8d311d90021
comparison
equal deleted inserted replaced
755:b1595db396a7 756:10332c6fad2e
26 #endif 26 #endif
27 27
28 #ifndef _SDL_lowvideo_h 28 #ifndef _SDL_lowvideo_h
29 #define _SDL_lowvideo_h 29 #define _SDL_lowvideo_h
30 30
31 #include "SDL_BWin.h"
31 #include "SDL_mouse.h" 32 #include "SDL_mouse.h"
32 #include "SDL_sysvideo.h" 33 #include "SDL_sysvideo.h"
33 34
34 /* Hidden "this" pointer for the video functions */ 35 /* Hidden "this" pointer for the video functions */
35 #define _THIS SDL_VideoDevice *_this 36 #define _THIS SDL_VideoDevice *_this
53 BPoint last_point; 54 BPoint last_point;
54 55
55 /* Keyboard state variables */ 56 /* Keyboard state variables */
56 int key_flip; 57 int key_flip;
57 struct key_info keyinfo[2]; 58 struct key_info keyinfo[2];
59
60 SDL_Overlay *overlay;
58 }; 61 };
59 /* Old variable names */ 62 /* Old variable names */
60 #define SDL_Win (_this->hidden->SDL_Win) 63 #define SDL_Win (_this->hidden->SDL_Win)
61 #define saved_mode (_this->hidden->saved_mode) 64 #define saved_mode (_this->hidden->saved_mode)
62 #define SDL_nummodes (_this->hidden->SDL_nummodes) 65 #define SDL_nummodes (_this->hidden->SDL_nummodes)
64 #define SDL_BlankCursor (_this->hidden->BlankCursor) 67 #define SDL_BlankCursor (_this->hidden->BlankCursor)
65 #define last_buttons (_this->hidden->last_buttons) 68 #define last_buttons (_this->hidden->last_buttons)
66 #define last_point (_this->hidden->last_point) 69 #define last_point (_this->hidden->last_point)
67 #define key_flip (_this->hidden->key_flip) 70 #define key_flip (_this->hidden->key_flip)
68 #define keyinfo (_this->hidden->keyinfo) 71 #define keyinfo (_this->hidden->keyinfo)
72 #define current_overlay (_this->hidden->overlay)
69 73
70 #endif /* _SDL_lowvideo_h */ 74 #endif /* _SDL_lowvideo_h */