comparison src/video/wincommon/SDL_sysevents.c @ 1280:f61f045343d3

Re-query the SDL_WINDOWID each time we initialize the video
author Sam Lantinga <slouken@libsdl.org>
date Sun, 29 Jan 2006 06:11:38 +0000
parents 94c0709f8856
children 217f5d5a49e5
comparison
equal deleted inserted replaced
1279:e867f327aa54 1280:f61f045343d3
670 } 670 }
671 return(handle); 671 return(handle);
672 } 672 }
673 673
674 /* This allows the SDL_WINDOWID hack */ 674 /* This allows the SDL_WINDOWID hack */
675 const char *SDL_windowid = NULL; 675 BOOL SDL_windowid = FALSE;
676 676
677 static int app_registered = 0; 677 static int app_registered = 0;
678 678
679 /* Register the class for this application -- exported for winmain.c */ 679 /* Register the class for this application -- exported for winmain.c */
680 int SDL_RegisterApp(char *name, Uint32 style, void *hInst) 680 int SDL_RegisterApp(char *name, Uint32 style, void *hInst)
741 if ( _TrackMouseEvent == NULL ) { 741 if ( _TrackMouseEvent == NULL ) {
742 _TrackMouseEvent = WIN_TrackMouseEvent; 742 _TrackMouseEvent = WIN_TrackMouseEvent;
743 } 743 }
744 #endif /* WM_MOUSELEAVE */ 744 #endif /* WM_MOUSELEAVE */
745 745
746 /* Check for SDL_WINDOWID hack */
747 SDL_windowid = getenv("SDL_WINDOWID");
748
749 #ifndef NO_GETKEYBOARDSTATE 746 #ifndef NO_GETKEYBOARDSTATE
750 /* Initialise variables for SDL_ToUnicode() */ 747 /* Initialise variables for SDL_ToUnicode() */
751 codepage = GetCodePage(); 748 codepage = GetCodePage();
752 SDL_ToUnicode = Is9xME() ? ToUnicode9xME : ToUnicode; 749 SDL_ToUnicode = Is9xME() ? ToUnicode9xME : ToUnicode;
753 #endif 750 #endif