comparison src/video/windx5/SDL_dx5video.c @ 304:ec53caed9fb2

*** empty log message ***
author Sam Lantinga <slouken@libsdl.org>
date Sun, 10 Mar 2002 03:25:47 +0000
parents f6ffac90895c
children f65715bd8ad8
comparison
equal deleted inserted replaced
303:767c10b9ec9f 304:ec53caed9fb2
49 #include "SDL_sysmouse_c.h" 49 #include "SDL_sysmouse_c.h"
50 #include "SDL_dx5events_c.h" 50 #include "SDL_dx5events_c.h"
51 #include "SDL_dx5yuv_c.h" 51 #include "SDL_dx5yuv_c.h"
52 #include "SDL_wingl_c.h" 52 #include "SDL_wingl_c.h"
53 53
54 /* Function called to create a GL video mode - use the GDI driver, not DirectX */
55 extern SDL_Surface *DIB_SetVideoMode(_THIS, SDL_Surface *current,
56 int width, int height, int bpp, Uint32 flags);
57 54
58 /* DirectX function pointers for video and events */ 55 /* DirectX function pointers for video and events */
59 HRESULT (WINAPI *DDrawCreate)( GUID FAR *lpGUID, LPDIRECTDRAW FAR *lplpDD, IUnknown FAR *pUnkOuter ); 56 HRESULT (WINAPI *DDrawCreate)( GUID FAR *lpGUID, LPDIRECTDRAW FAR *lplpDD, IUnknown FAR *pUnkOuter );
60 HRESULT (WINAPI *DInputCreate)(HINSTANCE hinst, DWORD dwVersion, LPDIRECTINPUTA *ppDI, LPUNKNOWN punkOuter); 57 HRESULT (WINAPI *DInputCreate)(HINSTANCE hinst, DWORD dwVersion, LPDIRECTINPUTA *ppDI, LPUNKNOWN punkOuter);
61 58
1076 settings.dmPelsWidth = width; 1073 settings.dmPelsWidth = width;
1077 settings.dmPelsHeight = height; 1074 settings.dmPelsHeight = height;
1078 settings.dmFields = DM_PELSWIDTH | DM_PELSHEIGHT | DM_BITSPERPEL; 1075 settings.dmFields = DM_PELSWIDTH | DM_PELSHEIGHT | DM_BITSPERPEL;
1079 if ( ChangeDisplaySettings(&settings, CDS_FULLSCREEN) == DISP_CHANGE_SUCCESSFUL ) { 1076 if ( ChangeDisplaySettings(&settings, CDS_FULLSCREEN) == DISP_CHANGE_SUCCESSFUL ) {
1080 video->flags |= SDL_FULLSCREEN; 1077 video->flags |= SDL_FULLSCREEN;
1078 SDL_fullscreen_mode = settings;
1081 } 1079 }
1082 } 1080 }
1083 1081
1084 style = GetWindowLong(SDL_Window, GWL_STYLE); 1082 style = GetWindowLong(SDL_Window, GWL_STYLE);
1085 style &= ~(resizestyle|WS_MAXIMIZE); 1083 style &= ~(resizestyle|WS_MAXIMIZE);