comparison src/video/wincommon/SDL_lowvideo.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 e49147870aac
children 4da1ee79c9af
comparison
equal deleted inserted replaced
1661:281d3f4870e5 1662:782fd950bd46
77 extern BOOL SDL_windowid; 77 extern BOOL SDL_windowid;
78 78
79 /* Variables and functions exported to other parts of the native video 79 /* Variables and functions exported to other parts of the native video
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 */
117 118
118 /* The system gamma ramp for GDI modes */ 119 /* The system gamma ramp for GDI modes */
119 extern WORD *gamma_saved; 120 extern WORD *gamma_saved;
120 121
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: */