comparison src/video/win32/SDL_win32window.c @ 4900:69d9db65f248

Merged the Windows custom window system hooks into the union used by X11. Added Cocoa custom window system hooks
author Sam Lantinga <slouken@libsdl.org>
date Mon, 27 Sep 2010 01:24:05 -0700
parents 518d1679d2d0
children 50d0bff24d81
comparison
equal deleted inserted replaced
4899:5d529386db73 4900:69d9db65f248
549 SDL_bool 549 SDL_bool
550 WIN_GetWindowWMInfo(_THIS, SDL_Window * window, SDL_SysWMinfo * info) 550 WIN_GetWindowWMInfo(_THIS, SDL_Window * window, SDL_SysWMinfo * info)
551 { 551 {
552 HWND hwnd = ((SDL_WindowData *) window->driverdata)->hwnd; 552 HWND hwnd = ((SDL_WindowData *) window->driverdata)->hwnd;
553 if (info->version.major <= SDL_MAJOR_VERSION) { 553 if (info->version.major <= SDL_MAJOR_VERSION) {
554 info->window = hwnd; 554 info->subsystem = SDL_SYSWM_WINDOWS;
555 info->info.win.window = hwnd;
555 return SDL_TRUE; 556 return SDL_TRUE;
556 } else { 557 } else {
557 SDL_SetError("Application not compiled with SDL %d.%d\n", 558 SDL_SetError("Application not compiled with SDL %d.%d\n",
558 SDL_MAJOR_VERSION, SDL_MINOR_VERSION); 559 SDL_MAJOR_VERSION, SDL_MINOR_VERSION);
559 return SDL_FALSE; 560 return SDL_FALSE;