Mercurial > sdl-ios-xcode
comparison src/video/windx5/SDL_dx5video.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 |
---|---|
28 #endif | 28 #endif |
29 | 29 |
30 #include "SDL_timer.h" | 30 #include "SDL_timer.h" |
31 #include "SDL_events.h" | 31 #include "SDL_events.h" |
32 #include "SDL_syswm.h" | 32 #include "SDL_syswm.h" |
33 #include "SDL_sysvideo.h" | 33 #include "../SDL_sysvideo.h" |
34 #include "SDL_blit.h" | 34 #include "../SDL_blit.h" |
35 #include "SDL_pixels_c.h" | 35 #include "../SDL_pixels_c.h" |
36 #include "SDL_dx5video.h" | 36 #include "SDL_dx5video.h" |
37 #include "SDL_syswm_c.h" | 37 #include "../wincommon/SDL_syswm_c.h" |
38 #include "SDL_sysmouse_c.h" | 38 #include "../wincommon/SDL_sysmouse_c.h" |
39 #include "SDL_dx5events_c.h" | 39 #include "SDL_dx5events_c.h" |
40 #include "SDL_dx5yuv_c.h" | 40 #include "SDL_dx5yuv_c.h" |
41 #include "SDL_wingl_c.h" | 41 #include "../wincommon/SDL_wingl_c.h" |
42 | 42 |
43 #ifdef _WIN32_WCE | 43 #ifdef _WIN32_WCE |
44 #define NO_CHANGEDISPLAYSETTINGS | 44 #define NO_CHANGEDISPLAYSETTINGS |
45 #endif | 45 #endif |
46 #ifndef WS_MAXIMIZE | 46 #ifndef WS_MAXIMIZE |
596 device->UnlockHWSurface = DX5_UnlockHWSurface; | 596 device->UnlockHWSurface = DX5_UnlockHWSurface; |
597 device->FlipHWSurface = DX5_FlipHWSurface; | 597 device->FlipHWSurface = DX5_FlipHWSurface; |
598 device->FreeHWSurface = DX5_FreeHWSurface; | 598 device->FreeHWSurface = DX5_FreeHWSurface; |
599 device->SetGammaRamp = DX5_SetGammaRamp; | 599 device->SetGammaRamp = DX5_SetGammaRamp; |
600 device->GetGammaRamp = DX5_GetGammaRamp; | 600 device->GetGammaRamp = DX5_GetGammaRamp; |
601 #ifdef HAVE_OPENGL | 601 #if SDL_VIDEO_OPENGL |
602 device->GL_LoadLibrary = WIN_GL_LoadLibrary; | 602 device->GL_LoadLibrary = WIN_GL_LoadLibrary; |
603 device->GL_GetProcAddress = WIN_GL_GetProcAddress; | 603 device->GL_GetProcAddress = WIN_GL_GetProcAddress; |
604 device->GL_GetAttribute = WIN_GL_GetAttribute; | 604 device->GL_GetAttribute = WIN_GL_GetAttribute; |
605 device->GL_MakeCurrent = WIN_GL_MakeCurrent; | 605 device->GL_MakeCurrent = WIN_GL_MakeCurrent; |
606 device->GL_SwapBuffers = WIN_GL_SwapBuffers; | 606 device->GL_SwapBuffers = WIN_GL_SwapBuffers; |
899 | 899 |
900 /* Create the window */ | 900 /* Create the window */ |
901 if ( DX5_CreateWindow(this) < 0 ) { | 901 if ( DX5_CreateWindow(this) < 0 ) { |
902 return(-1); | 902 return(-1); |
903 } | 903 } |
904 #ifndef DISABLE_AUDIO | 904 #if !SDL_AUDIO_DISABLED |
905 DX5_SoundFocus(SDL_Window); | 905 DX5_SoundFocus(SDL_Window); |
906 #endif | 906 #endif |
907 | 907 |
908 /* Create the DirectDraw object */ | 908 /* Create the DirectDraw object */ |
909 result = DDrawCreate(NULL, &ddraw, NULL); | 909 result = DDrawCreate(NULL, &ddraw, NULL); |