Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Fixed some compile errors and warnings under Visual C++
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Jun 12, 2009
1 parent b01978f commit e1e88f4
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/video/SDL_video.c
Expand Up @@ -1630,7 +1630,7 @@ SDL_CreateTextureFromSurface(Uint32 format, SDL_Surface * surface)
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 */
Expand Down Expand Up @@ -1724,7 +1724,7 @@ SDL_CreateTextureFromSurface(Uint32 format, SDL_Surface * surface)
}
} else {
/* Need a format with alpha */
int it;
Uint32 it;
int apfmt;

/* Pixel formats with alpha, sorted by best first */
Expand Down
2 changes: 1 addition & 1 deletion src/video/win32/SDL_win32video.h
Expand Up @@ -87,7 +87,7 @@ typedef struct SDL_VideoData
/* *INDENT-ON* */

int keyboard;
SDL_scancode *key_layout;
const SDL_scancode *key_layout;
} SDL_VideoData;

#endif /* _SDL_win32video_h */
Expand Down
2 changes: 1 addition & 1 deletion src/video/win32/SDL_win32window.c
Expand Up @@ -642,6 +642,7 @@ SDL_HelperWindowCreate(void)
{
HINSTANCE hInstance = GetModuleHandle(NULL);
WNDCLASS wce;
HWND hWndParent = NULL;

/* Make sure window isn't created twice. */
if (SDL_HelperWindow != NULL) {
Expand All @@ -662,7 +663,6 @@ SDL_HelperWindowCreate(void)
return -1;
}

HWND hWndParent = NULL;
#ifndef _WIN32_WCE
/* WinCE doesn't have HWND_MESSAGE */
hWndParent = HWND_MESSAGE;
Expand Down

0 comments on commit e1e88f4

Please sign in to comment.