Mercurial > sdl-ios-xcode
diff src/video/windows/SDL_windowsvideo.c @ 5142:57851a238c8f
Removed more partially functional renderers
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Mon, 31 Jan 2011 22:53:45 -0800 |
parents | da10636e5eca |
children | fb424691cfc7 |
line wrap: on
line diff
--- a/src/video/windows/SDL_windowsvideo.c Mon Jan 31 22:44:43 2011 -0800 +++ b/src/video/windows/SDL_windowsvideo.c Mon Jan 31 22:53:45 2011 -0800 @@ -30,7 +30,6 @@ #include "SDL_windowsvideo.h" #include "SDL_windowsshape.h" #include "SDL_d3drender.h" -#include "SDL_gapirender.h" /* Initialization/Query functions */ static int WIN_VideoInit(_THIS); @@ -57,12 +56,6 @@ SDL_UnloadObject(data->d3dDLL); } #endif -#if SDL_VIDEO_RENDER_DDRAW - if (data->ddraw) { - data->ddraw->lpVtbl->Release(data->ddraw); - SDL_UnloadObject(data->ddrawDLL); - } -#endif #ifdef _WIN32_WCE if(data->hAygShell) { SDL_UnloadObject(data->hAygShell); @@ -100,42 +93,6 @@ } device->driverdata = data; -#if SDL_VIDEO_RENDER_D3D - data->d3dDLL = SDL_LoadObject("D3D9.DLL"); - if (data->d3dDLL) { - IDirect3D9 *(WINAPI * D3DCreate) (UINT SDKVersion); - - D3DCreate = - (IDirect3D9 * (WINAPI *) (UINT)) SDL_LoadFunction(data->d3dDLL, - "Direct3DCreate9"); - if (D3DCreate) { - data->d3d = D3DCreate(D3D_SDK_VERSION); - } - if (!data->d3d) { - SDL_UnloadObject(data->d3dDLL); - data->d3dDLL = NULL; - } - } -#endif /* SDL_VIDEO_RENDER_D3D */ -#if SDL_VIDEO_RENDER_DDRAW - data->ddrawDLL = SDL_LoadObject("ddraw.dll"); - if (data->ddrawDLL) { - IDirectDraw *(WINAPI * DDCreate) (GUID FAR * lpGUID, - LPDIRECTDRAW FAR * lplpDD, - IUnknown FAR * pUnkOuter); - - DDCreate = - (IDirectDraw * - (WINAPI *) (GUID FAR *, LPDIRECTDRAW FAR *, IUnknown FAR *)) - SDL_LoadFunction(data->ddrawDLL, "DirectDrawCreate"); - if (!DDCreate || DDCreate(NULL, &data->ddraw, NULL) != DD_OK) { - SDL_UnloadObject(data->ddrawDLL); - data->ddrawDLL = NULL; - data->ddraw = NULL; - } - } -#endif /* SDL_VIDEO_RENDER_DDRAW */ - #ifdef _WIN32_WCE data->hAygShell = SDL_LoadObject("\\windows\\aygshell.dll"); if(0 == data->hAygShell) @@ -221,12 +178,6 @@ #if SDL_VIDEO_RENDER_D3D D3D_AddRenderDriver(_this); #endif -#if SDL_VIDEO_RENDER_DDRAW - DDRAW_AddRenderDriver(_this); -#endif -#if SDL_VIDEO_RENDER_GAPI - WINCE_AddRenderDriver(_this); -#endif WIN_InitKeyboard(_this); WIN_InitMouse(_this);