[SDL] Re: SDl embed in a (win32) windows

Pete Shinners pete at visionart.com
Mon Jul 16 14:21:08 PDT 2001


"David MacCormack" <djm at maccormack.net> wrote 
>    if ( SDL_windowid ) {
>                 SDL_Window = (HWND)strtol(SDL_windowid, NULL, 0);
>         } else {
>                 SDL_Window = CreateWindow(SDL_Appname, SDL_Appname,


i can see a possible bug just glancing at the two files.
it looks to me like the "dib" version properly handles the
DestroyWindow call by checking the value of SDL_windowid.
meanwhile in the "dx5" version it blindly destroys the window
without checking this value?






More information about the SDL mailing list