diff src/video/win32/SDL_win32window.c @ 1720:a1ebb17f9c52 SDL-1.3

Cleaned up a bunch of warnings, started adding Win32 event support
author Sam Lantinga <slouken@libsdl.org>
date Fri, 30 Jun 2006 05:42:49 +0000
parents 5b9f50c957ed
children 5daa04d862f1
line wrap: on
line diff
--- a/src/video/win32/SDL_win32window.c	Wed Jun 28 08:12:07 2006 +0000
+++ b/src/video/win32/SDL_win32window.c	Fri Jun 30 05:42:49 2006 +0000
@@ -25,6 +25,9 @@
 
 #include "SDL_win32video.h"
 
+/* This is included after SDL_win32video.h, which includes windows.h */
+#include "SDL_syswm.h"
+
 
 static int
 SetupWindowData(SDL_Window * window, HWND hwnd, BOOL created)
@@ -59,6 +62,8 @@
     /* Fill in the SDL window with the window data */
     {
         POINT point;
+        point.x = 0;
+        point.y = 0;
         if (ClientToScreen(hwnd, &point)) {
             window->x = point.x;
             window->y = point.y;
@@ -385,8 +390,6 @@
 WIN_GetWindowWMInfo(_THIS, SDL_Window * window, SDL_SysWMinfo * info)
 {
     HWND hwnd = ((SDL_WindowData *) window->driverdata)->hwnd;
-/* FIXME! */
-#if 0
     if (info->version.major <= SDL_MAJOR_VERSION) {
         info->window = hwnd;
         /* FIXME! */
@@ -397,7 +400,6 @@
                      SDL_MAJOR_VERSION, SDL_MINOR_VERSION);
         return SDL_FALSE;
     }
-#endif
 }
 
 /* vi: set ts=4 sw=4 expandtab: */