comparison src/video/windib/SDL_dibevents.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 b8427b5151ed
comparison
equal deleted inserted replaced
832:f003714db2f4 833:31fa08b36380
377 SetWindowLong(SDL_Window, GWL_WNDPROC, (LONG)WinMessage); 377 SetWindowLong(SDL_Window, GWL_WNDPROC, (LONG)WinMessage);
378 } 378 }
379 } else { 379 } else {
380 SDL_Window = CreateWindow(SDL_Appname, SDL_Appname, 380 SDL_Window = CreateWindow(SDL_Appname, SDL_Appname,
381 (WS_OVERLAPPED|WS_CAPTION|WS_SYSMENU|WS_MINIMIZEBOX), 381 (WS_OVERLAPPED|WS_CAPTION|WS_SYSMENU|WS_MINIMIZEBOX),
382 0, 0, 0, 0, NULL, NULL, SDL_Instance, NULL); 382 CW_USEDEFAULT, CW_USEDEFAULT, 0, 0, NULL, NULL, SDL_Instance, NULL);
383 if ( SDL_Window == NULL ) { 383 if ( SDL_Window == NULL ) {
384 SDL_SetError("Couldn't create window"); 384 SDL_SetError("Couldn't create window");
385 return(-1); 385 return(-1);
386 } 386 }
387 ShowWindow(SDL_Window, SW_HIDE); 387 ShowWindow(SDL_Window, SW_HIDE);