diff src/video/win32/SDL_win32window.c @ 4763:518d1679d2d0

Merged Daniel's Google Summer of Code work from SDL-gsoc2010_IME
author Sam Lantinga <slouken@libsdl.org>
date Sun, 22 Aug 2010 12:39:27 -0700
parents c24ba2cc9583 436183eb30c8
children 69d9db65f248
line wrap: on
line diff
--- a/src/video/win32/SDL_win32window.c	Sun Aug 22 12:35:34 2010 -0700
+++ b/src/video/win32/SDL_win32window.c	Sun Aug 22 12:39:27 2010 -0700
@@ -77,10 +77,12 @@
 
     /* Set up the window proc function */
     data->wndproc = (WNDPROC) GetWindowLongPtr(hwnd, GWLP_WNDPROC);
-    if (data->wndproc == DefWindowProc) {
+    if (data->wndproc == WIN_WindowProc) {
         data->wndproc = NULL;
     }
-    SetWindowLongPtr(hwnd, GWLP_WNDPROC, (LONG_PTR) WIN_WindowProc);
+    else {
+        SetWindowLongPtr(hwnd, GWLP_WNDPROC, (LONG_PTR) WIN_WindowProc);
+    }
 
     /* Fill in the SDL window with the window data */
     {