comparison src/video/wincommon/SDL_lowvideo.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 21b1fbb53f4a
children
comparison
equal deleted inserted replaced
1894:c69cee13dd76 1895:c121d94672cb
49 #define _THIS SDL_VideoDevice *this 49 #define _THIS SDL_VideoDevice *this
50 50
51 #define WINDIB_FULLSCREEN() \ 51 #define WINDIB_FULLSCREEN() \
52 ( \ 52 ( \
53 SDL_VideoSurface && \ 53 SDL_VideoSurface && \
54 ((SDL_VideoSurface->flags & SDL_FULLSCREEN) == SDL_FULLSCREEN) && \ 54 (SDL_VideoSurface->flags & SDL_FULLSCREEN) && \
55 (((SDL_VideoSurface->flags & SDL_OPENGL ) == SDL_OPENGL ) || \ 55 ((SDL_VideoSurface->flags & SDL_INTERNALOPENGL) || \
56 ((SDL_strcmp(this->name, "windib") == 0) || \ 56 ((SDL_strcmp(this->name, "windib") == 0) || \
57 (SDL_strcmp(this->name, "gapi") == 0))) \ 57 (SDL_strcmp(this->name, "gapi") == 0))) \
58 ) 58 )
59 #define DDRAW_FULLSCREEN() \ 59 #define DDRAW_FULLSCREEN() \
60 ( \ 60 ( \
61 SDL_VideoSurface && \ 61 SDL_VideoSurface && \
62 ((SDL_VideoSurface->flags & SDL_FULLSCREEN) == SDL_FULLSCREEN) && \ 62 (SDL_VideoSurface->flags & SDL_FULLSCREEN) && \
63 ((SDL_VideoSurface->flags & SDL_OPENGL ) != SDL_OPENGL ) && \ 63 (SDL_VideoSurface->flags & SDL_INTERNALOPENGL) && \
64 (SDL_strcmp(this->name, "directx") == 0) \ 64 (SDL_strcmp(this->name, "directx") == 0) \
65 ) 65 )
66 66
67 #define DINPUT_FULLSCREEN() DDRAW_FULLSCREEN() 67 #define DINPUT_FULLSCREEN() DDRAW_FULLSCREEN()
68 68
69 /* The main window -- and a function to set it for the audio */ 69 /* The main window -- and a function to set it for the audio */
80 subsystem (SDL_sysevents.c) 80 subsystem (SDL_sysevents.c)
81 */ 81 */
82 extern void WIN_FlushMessageQueue(); 82 extern void WIN_FlushMessageQueue();
83 83
84 /* Called by windows message loop when system palette is available */ 84 /* Called by windows message loop when system palette is available */
85 extern void (*WIN_RealizePalette)(_THIS); 85 extern void (*WIN_RealizePalette) (_THIS);
86 86
87 /* Called by windows message loop when the system palette changes */ 87 /* Called by windows message loop when the system palette changes */
88 extern void (*WIN_PaletteChanged)(_THIS, HWND window); 88 extern void (*WIN_PaletteChanged) (_THIS, HWND window);
89 89
90 /* Called by windows message loop when a portion of the screen needs update */ 90 /* Called by windows message loop when a portion of the screen needs update */
91 extern void (*WIN_WinPAINT)(_THIS, HDC hdc); 91 extern void (*WIN_WinPAINT) (_THIS, HDC hdc);
92 92
93 /* Called by windows message loop when the message isn't handled */ 93 /* Called by windows message loop when the message isn't handled */
94 extern LONG (*HandleMessage)(_THIS, HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam); 94 extern LONG(*HandleMessage) (_THIS, HWND hwnd, UINT msg, WPARAM wParam,
95 LPARAM lParam);
95 96
96 /* The window cursor (from SDL_sysmouse.c) */ 97 /* The window cursor (from SDL_sysmouse.c) */
97 extern HCURSOR SDL_hcursor; 98 extern HCURSOR SDL_hcursor;
98 99
99 /* The bounds of the window in screen coordinates */ 100 /* The bounds of the window in screen coordinates */
121 /* This is really from SDL_dx5audio.c */ 122 /* This is really from SDL_dx5audio.c */
122 extern void DX5_SoundFocus(HWND window); 123 extern void DX5_SoundFocus(HWND window);
123 124
124 /* DJM: This is really from SDL_sysevents.c, we need it in 125 /* DJM: This is really from SDL_sysevents.c, we need it in
125 GDL_CreateWindow as well */ 126 GDL_CreateWindow as well */
126 LRESULT CALLBACK WinMessage(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam); 127 LRESULT CALLBACK WinMessage(HWND hwnd, UINT msg, WPARAM wParam,
128 LPARAM lParam);
127 129
128 /* JFP: Implementation of ToUnicode() that works on 9x/ME/2K/XP */ 130 /* JFP: Implementation of ToUnicode() that works on 9x/ME/2K/XP */
129 typedef int (WINAPI *ToUnicodeFN)(UINT, UINT, PBYTE, LPWSTR, int, UINT); 131 typedef int (WINAPI * ToUnicodeFN) (UINT, UINT, PBYTE, LPWSTR, int, UINT);
130 132
131 extern ToUnicodeFN SDL_ToUnicode; 133 extern ToUnicodeFN SDL_ToUnicode;
132 134
133 #endif /* SDL_lowvideo_h */ 135 #endif /* SDL_lowvideo_h */
136 /* vi: set ts=4 sw=4 expandtab: */