comparison src/video/windib/SDL_dibvideo.c @ 1361:19418e4422cb

New configure-based build system. Still work in progress, but much improved
author Sam Lantinga <slouken@libsdl.org>
date Thu, 16 Feb 2006 10:11:48 +0000
parents c71e05b4dc2e
children d910939febfa
comparison
equal deleted inserted replaced
1360:70a9cfb4cf1b 1361:19418e4422cb
33 #ifndef CDS_FULLSCREEN 33 #ifndef CDS_FULLSCREEN
34 #define CDS_FULLSCREEN 4 34 #define CDS_FULLSCREEN 4
35 #endif 35 #endif
36 36
37 #include "SDL_syswm.h" 37 #include "SDL_syswm.h"
38 #include "SDL_sysvideo.h" 38 #include "../SDL_sysvideo.h"
39 #include "SDL_sysevents.h" 39 #include "../SDL_pixels_c.h"
40 #include "SDL_events_c.h" 40 #include "../../events/SDL_sysevents.h"
41 #include "SDL_pixels_c.h" 41 #include "../../events/SDL_events_c.h"
42 #include "SDL_dibvideo.h" 42 #include "SDL_dibvideo.h"
43 #include "SDL_syswm_c.h" 43 #include "../wincommon/SDL_syswm_c.h"
44 #include "SDL_sysmouse_c.h" 44 #include "../wincommon/SDL_sysmouse_c.h"
45 #include "SDL_dibevents_c.h" 45 #include "SDL_dibevents_c.h"
46 #include "SDL_wingl_c.h" 46 #include "../wincommon/SDL_wingl_c.h"
47 47
48 #ifdef _WIN32_WCE 48 #ifdef _WIN32_WCE
49 #define NO_GETDIBITS 49 #define NO_GETDIBITS
50 #define NO_CHANGEDISPLAYSETTINGS 50 #define NO_CHANGEDISPLAYSETTINGS
51 #define NO_GAMMA_SUPPORT 51 #define NO_GAMMA_SUPPORT
149 device->UnlockHWSurface = DIB_UnlockHWSurface; 149 device->UnlockHWSurface = DIB_UnlockHWSurface;
150 device->FlipHWSurface = NULL; 150 device->FlipHWSurface = NULL;
151 device->FreeHWSurface = DIB_FreeHWSurface; 151 device->FreeHWSurface = DIB_FreeHWSurface;
152 device->SetGammaRamp = DIB_SetGammaRamp; 152 device->SetGammaRamp = DIB_SetGammaRamp;
153 device->GetGammaRamp = DIB_GetGammaRamp; 153 device->GetGammaRamp = DIB_GetGammaRamp;
154 #ifdef HAVE_OPENGL 154 #if SDL_VIDEO_OPENGL
155 device->GL_LoadLibrary = WIN_GL_LoadLibrary; 155 device->GL_LoadLibrary = WIN_GL_LoadLibrary;
156 device->GL_GetProcAddress = WIN_GL_GetProcAddress; 156 device->GL_GetProcAddress = WIN_GL_GetProcAddress;
157 device->GL_GetAttribute = WIN_GL_GetAttribute; 157 device->GL_GetAttribute = WIN_GL_GetAttribute;
158 device->GL_MakeCurrent = WIN_GL_MakeCurrent; 158 device->GL_MakeCurrent = WIN_GL_MakeCurrent;
159 device->GL_SwapBuffers = WIN_GL_SwapBuffers; 159 device->GL_SwapBuffers = WIN_GL_SwapBuffers;
289 289
290 /* Create the window */ 290 /* Create the window */
291 if ( DIB_CreateWindow(this) < 0 ) { 291 if ( DIB_CreateWindow(this) < 0 ) {
292 return(-1); 292 return(-1);
293 } 293 }
294 #ifndef DISABLE_AUDIO 294 #if !SDL_AUDIO_DISABLED
295 DX5_SoundFocus(SDL_Window); 295 DX5_SoundFocus(SDL_Window);
296 #endif 296 #endif
297 297
298 /* Determine the screen depth */ 298 /* Determine the screen depth */
299 vformat->BitsPerPixel = DIB_SussScreenDepth(); 299 vformat->BitsPerPixel = DIB_SussScreenDepth();
1020 mdc, 0, 0, SRCCOPY); 1020 mdc, 0, 0, SRCCOPY);
1021 DeleteDC(mdc); 1021 DeleteDC(mdc);
1022 } 1022 }
1023 1023
1024 /* Stub in case DirectX isn't available */ 1024 /* Stub in case DirectX isn't available */
1025 #ifndef ENABLE_DIRECTX 1025 #if !SDL_AUDIO_DRIVER_DSOUND
1026 void DX5_SoundFocus(HWND hwnd) 1026 void DX5_SoundFocus(HWND hwnd)
1027 { 1027 {
1028 return; 1028 return;
1029 } 1029 }
1030 #endif 1030 #endif