# HG changeset patch # User Sam Lantinga # Date 1244796108 0 # Node ID 413672b09bb379e3dbc873a15e48b3d427ccc545 # Parent 08747e24a50f78be9e510c198f7a230e5381eaaf Fixed some compile errors and warnings under Visual C++ diff -r 08747e24a50f -r 413672b09bb3 src/video/SDL_video.c --- a/src/video/SDL_video.c Thu Jun 11 20:08:33 2009 +0000 +++ b/src/video/SDL_video.c Fri Jun 12 08:41:48 2009 +0000 @@ -1630,7 +1630,7 @@ if (surface->format->Amask || !(surface->map->info.flags & (SDL_COPY_COLORKEY | SDL_COPY_MASK | SDL_COPY_BLEND))) { - int it; + Uint32 it; int pfmt; /* Pixel formats, sorted by best first */ @@ -1724,7 +1724,7 @@ } } else { /* Need a format with alpha */ - int it; + Uint32 it; int apfmt; /* Pixel formats with alpha, sorted by best first */ diff -r 08747e24a50f -r 413672b09bb3 src/video/win32/SDL_win32video.h --- a/src/video/win32/SDL_win32video.h Thu Jun 11 20:08:33 2009 +0000 +++ b/src/video/win32/SDL_win32video.h Fri Jun 12 08:41:48 2009 +0000 @@ -87,7 +87,7 @@ /* *INDENT-ON* */ int keyboard; - SDL_scancode *key_layout; + const SDL_scancode *key_layout; } SDL_VideoData; #endif /* _SDL_win32video_h */ diff -r 08747e24a50f -r 413672b09bb3 src/video/win32/SDL_win32window.c --- a/src/video/win32/SDL_win32window.c Thu Jun 11 20:08:33 2009 +0000 +++ b/src/video/win32/SDL_win32window.c Fri Jun 12 08:41:48 2009 +0000 @@ -642,6 +642,7 @@ { HINSTANCE hInstance = GetModuleHandle(NULL); WNDCLASS wce; + HWND hWndParent = NULL; /* Make sure window isn't created twice. */ if (SDL_HelperWindow != NULL) { @@ -662,7 +663,6 @@ return -1; } - HWND hWndParent = NULL; #ifndef _WIN32_WCE /* WinCE doesn't have HWND_MESSAGE */ hWndParent = HWND_MESSAGE;