Mercurial > sdl-ios-xcode
annotate src/video/wincommon/SDL_lowvideo.h @ 245:ab781a7dd82f
*** empty log message ***
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Mon, 26 Nov 2001 22:22:20 +0000 |
parents | 29a638dc26db |
children | e8157fcb3114 |
rev | line source |
---|---|
0 | 1 /* |
2 SDL - Simple DirectMedia Layer | |
3 Copyright (C) 1997, 1998, 1999, 2000, 2001 Sam Lantinga | |
4 | |
5 This library is free software; you can redistribute it and/or | |
6 modify it under the terms of the GNU Library General Public | |
7 License as published by the Free Software Foundation; either | |
8 version 2 of the License, or (at your option) any later version. | |
9 | |
10 This library is distributed in the hope that it will be useful, | |
11 but WITHOUT ANY WARRANTY; without even the implied warranty of | |
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
13 Library General Public License for more details. | |
14 | |
15 You should have received a copy of the GNU Library General Public | |
16 License along with this library; if not, write to the Free | |
17 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | |
18 | |
19 Sam Lantinga | |
20 slouken@devolution.com | |
21 */ | |
22 | |
23 #ifdef SAVE_RCSID | |
24 static char rcsid = | |
25 "@(#) $Id$"; | |
26 #endif | |
27 | |
28 #ifndef _SDL_lowvideo_h | |
29 #define _SDL_lowvideo_h | |
30 | |
31 #include <windows.h> | |
32 | |
33 #include "SDL_sysvideo.h" | |
34 | |
35 /* Hidden "this" pointer for the video functions */ | |
36 #define _THIS SDL_VideoDevice *this | |
37 | |
13
e30a8ce27c22
Fixed double-mouse event bug on Windows using OpenGL
Sam Lantinga <slouken@lokigames.com>
parents:
0
diff
changeset
|
38 #define DDRAW_FULLSCREEN() \ |
0 | 39 ( \ |
40 ((SDL_VideoSurface->flags & SDL_FULLSCREEN) == SDL_FULLSCREEN) && \ | |
41 ((SDL_VideoSurface->flags & SDL_OPENGL ) != SDL_OPENGL ) && \ | |
42 (strcmp(this->name, "directx") == 0) \ | |
43 ) | |
44 | |
13
e30a8ce27c22
Fixed double-mouse event bug on Windows using OpenGL
Sam Lantinga <slouken@lokigames.com>
parents:
0
diff
changeset
|
45 #define DINPUT_FULLSCREEN() \ |
e30a8ce27c22
Fixed double-mouse event bug on Windows using OpenGL
Sam Lantinga <slouken@lokigames.com>
parents:
0
diff
changeset
|
46 ( \ |
e30a8ce27c22
Fixed double-mouse event bug on Windows using OpenGL
Sam Lantinga <slouken@lokigames.com>
parents:
0
diff
changeset
|
47 ((SDL_VideoSurface->flags & SDL_FULLSCREEN) == SDL_FULLSCREEN) && \ |
e30a8ce27c22
Fixed double-mouse event bug on Windows using OpenGL
Sam Lantinga <slouken@lokigames.com>
parents:
0
diff
changeset
|
48 (strcmp(this->name, "directx") == 0) \ |
e30a8ce27c22
Fixed double-mouse event bug on Windows using OpenGL
Sam Lantinga <slouken@lokigames.com>
parents:
0
diff
changeset
|
49 ) |
e30a8ce27c22
Fixed double-mouse event bug on Windows using OpenGL
Sam Lantinga <slouken@lokigames.com>
parents:
0
diff
changeset
|
50 |
0 | 51 /* The main window -- and a function to set it for the audio */ |
52 extern const char *SDL_Appname; | |
53 extern HINSTANCE SDL_Instance; | |
54 extern HWND SDL_Window; | |
55 extern const char *SDL_windowid; | |
56 | |
57 /* Variables and functions exported to other parts of the native video | |
58 subsystem (SDL_sysevents.c) | |
59 */ | |
60 /* Called by windows message loop when system palette is available */ | |
61 extern void (*WIN_RealizePalette)(_THIS); | |
62 | |
63 /* Called by windows message loop when the system palette changes */ | |
64 extern void (*WIN_PaletteChanged)(_THIS, HWND window); | |
65 | |
66 /* Called by windows message loop when losing or gaining gamma focus */ | |
67 extern void (*WIN_SwapGamma)(_THIS); | |
68 | |
69 /* Called by windows message loop when a portion of the screen needs update */ | |
70 extern void (*WIN_WinPAINT)(_THIS, HDC hdc); | |
71 | |
72 /* Called by windows message loop when the message isn't handled */ | |
73 extern LONG (*HandleMessage)(_THIS, HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam); | |
74 | |
75 /* The window cursor (from SDL_sysmouse.c) */ | |
76 extern HCURSOR SDL_hcursor; | |
77 | |
78 /* The bounds of the window in screen coordinates */ | |
79 extern RECT SDL_bounds; | |
80 | |
81 /* Flag -- SDL is performing a resize, rather than the user */ | |
82 extern int SDL_resizing; | |
83 | |
84 /* Flag -- the mouse is in relative motion mode */ | |
85 extern int mouse_relative; | |
86 | |
87 /* This is really from SDL_dx5audio.c */ | |
88 extern void DX5_SoundFocus(HWND window); | |
89 | |
145
29a638dc26db
Applied David MacCormack's patch to fix SDL_WINDOWID on Windows,
Sam Lantinga <slouken@libsdl.org>
parents:
13
diff
changeset
|
90 /* DJM: This is really from SDL_sysevents.c, we need it in |
29a638dc26db
Applied David MacCormack's patch to fix SDL_WINDOWID on Windows,
Sam Lantinga <slouken@libsdl.org>
parents:
13
diff
changeset
|
91 GDL_CreateWindow as well */ |
29a638dc26db
Applied David MacCormack's patch to fix SDL_WINDOWID on Windows,
Sam Lantinga <slouken@libsdl.org>
parents:
13
diff
changeset
|
92 LONG CALLBACK WinMessage(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam); |
29a638dc26db
Applied David MacCormack's patch to fix SDL_WINDOWID on Windows,
Sam Lantinga <slouken@libsdl.org>
parents:
13
diff
changeset
|
93 |
0 | 94 #endif /* SDL_lowvideo_h */ |