comparison src/video/windx5/SDL_dx5events.c @ 833:31fa08b36380

Added support for SDL_VIDEO_WINDOW_POS and SDL_VIDEO_CENTERED on Windows
author Sam Lantinga <slouken@libsdl.org>
date Mon, 16 Feb 2004 21:09:24 +0000
parents b8d311d90021
children fb8b91365766
comparison
equal deleted inserted replaced
832:f003714db2f4 833:31fa08b36380
854 SetWindowLong(SDL_Window, GWL_WNDPROC, (LONG)WinMessage); 854 SetWindowLong(SDL_Window, GWL_WNDPROC, (LONG)WinMessage);
855 } 855 }
856 } else { 856 } else {
857 SDL_Window = CreateWindow(SDL_Appname, SDL_Appname, 857 SDL_Window = CreateWindow(SDL_Appname, SDL_Appname,
858 (WS_OVERLAPPED|WS_CAPTION|WS_SYSMENU|WS_MINIMIZEBOX), 858 (WS_OVERLAPPED|WS_CAPTION|WS_SYSMENU|WS_MINIMIZEBOX),
859 0, 0, 0, 0, NULL, NULL, SDL_Instance, NULL); 859 CW_USEDEFAULT, CW_USEDEFAULT, 0, 0, NULL, NULL, SDL_Instance, NULL);
860 if ( SDL_Window == NULL ) { 860 if ( SDL_Window == NULL ) {
861 SDL_SetError("Couldn't create window"); 861 SDL_SetError("Couldn't create window");
862 return(-1); 862 return(-1);
863 } 863 }
864 ShowWindow(SDL_Window, SW_HIDE); 864 ShowWindow(SDL_Window, SW_HIDE);