src/video/windows/SDL_windowsevents.c
changeset 7816 f16e342b167a
parent 7813 d8fb783475d5
child 7911 a9135f92ddba
equal deleted inserted replaced
7815:a8de34099dec 7816:f16e342b167a
   307     if (!data) {
   307     if (!data) {
   308         return CallWindowProc(DefWindowProc, hwnd, msg, wParam, lParam);
   308         return CallWindowProc(DefWindowProc, hwnd, msg, wParam, lParam);
   309     }
   309     }
   310 
   310 
   311 #ifdef WMMSG_DEBUG
   311 #ifdef WMMSG_DEBUG
   312     {
   312 	{
   313         FILE *log = fopen("wmmsg.txt", "a");
   313 		char message[1024];
   314         fprintf(log, "Received windows message: %p ", hwnd);
   314 		if (msg > MAX_WMMSG) {
   315         if (msg > MAX_WMMSG) {
   315 			SDL_snprintf(message, sizeof(message), "Received windows message: %p UNKNOWN (%d) -- 0x%X, 0x%X\n", hwnd, msg, wParam, lParam);
   316             fprintf(log, "%d", msg);
   316 		} else {
   317         } else {
   317 			SDL_snprintf(message, sizeof(message), "Received windows message: %p %s -- 0x%X, 0x%X\n", hwnd, wmtab[msg], wParam, lParam);
   318             fprintf(log, "%s", wmtab[msg]);
   318 		}
   319         }
   319 		OutputDebugStringA(message);
   320         fprintf(log, " -- 0x%X, 0x%X\n", wParam, lParam);
   320 	}
   321         fclose(log);
   321 #endif /* WMMSG_DEBUG */
   322     }
       
   323 #endif
       
   324 
   322 
   325     if (IME_HandleMessage(hwnd, msg, wParam, &lParam, data->videodata))
   323     if (IME_HandleMessage(hwnd, msg, wParam, &lParam, data->videodata))
   326         return 0;
   324         return 0;
   327 
   325 
   328     switch (msg) {
   326     switch (msg) {