src/video/windows/SDL_windowsevents.c
changeset 6430 48d519500f7e
parent 6350 19545983ac76
child 6523 62d0193a7a02
     1.1 --- a/src/video/windows/SDL_windowsevents.c	Fri Sep 14 18:18:38 2012 -0400
     1.2 +++ b/src/video/windows/SDL_windowsevents.c	Sat Sep 15 10:59:39 2012 -0400
     1.3 @@ -164,12 +164,10 @@
     1.4                  SDL_SendWindowEvent(data->window, SDL_WINDOWEVENT_SHOWN, 0, 0);
     1.5                  SDL_SendWindowEvent(data->window,
     1.6                                      SDL_WINDOWEVENT_RESTORED, 0, 0);
     1.7 -#ifndef _WIN32_WCE              /* WinCE misses IsZoomed() */
     1.8                  if (IsZoomed(hwnd)) {
     1.9                      SDL_SendWindowEvent(data->window,
    1.10                                          SDL_WINDOWEVENT_MAXIMIZED, 0, 0);
    1.11                  }
    1.12 -#endif
    1.13                  if (SDL_GetKeyboardFocus() != data->window) {
    1.14                      SDL_SetKeyboardFocus(data->window);
    1.15                  }
    1.16 @@ -211,20 +209,6 @@
    1.17  	case WM_MOUSEMOVE:
    1.18  		if(SDL_GetMouse()->relative_mode)
    1.19  			break;
    1.20 -#ifdef _WIN32_WCE
    1.21 -        /* transform coords for VGA, WVGA... */
    1.22 -        {
    1.23 -            SDL_VideoData *videodata = data->videodata;
    1.24 -            if(videodata->CoordTransform) {
    1.25 -                POINT pt;
    1.26 -                pt.x = LOWORD(lParam);
    1.27 -                pt.y = HIWORD(lParam);
    1.28 -                videodata->CoordTransform(data->window, &pt);
    1.29 -                SDL_SendMouseMotion(data->window, 0, pt.x, pt.y);
    1.30 -                break;
    1.31 -            }
    1.32 -        }
    1.33 -#endif
    1.34          SDL_SendMouseMotion(data->window, 0, LOWORD(lParam), HIWORD(lParam));
    1.35          break;
    1.36  
    1.37 @@ -463,16 +447,12 @@
    1.38  
    1.39  
    1.40              style = GetWindowLong(hwnd, GWL_STYLE);
    1.41 -#ifdef _WIN32_WCE
    1.42 -            menu = FALSE;
    1.43 -#else
    1.44              /* DJM - according to the docs for GetMenu(), the
    1.45                 return value is undefined if hwnd is a child window.
    1.46                 Aparently it's too difficult for MS to check
    1.47                 inside their function, so I have to do it here.
    1.48               */
    1.49              menu = (style & WS_CHILDWINDOW) ? FALSE : (GetMenu(hwnd) != NULL);
    1.50 -#endif
    1.51              AdjustWindowRectEx(&size, style, menu, 0);
    1.52              w = size.right - size.left;
    1.53              h = size.bottom - size.top;