mirror of
https://github.com/joel16/SDL2.git
synced 2025-02-02 01:33:35 +00:00
Fixed some compile errors and warnings under Visual C++
--HG-- extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403655
This commit is contained in:
parent
75ffaf1d21
commit
e2f3d399b5
@ -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 */
|
||||
@ -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 */
|
||||
|
@ -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 */
|
||||
|
@ -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) {
|
||||
@ -662,7 +663,6 @@ SDL_HelperWindowCreate(void)
|
||||
return -1;
|
||||
}
|
||||
|
||||
HWND hWndParent = NULL;
|
||||
#ifndef _WIN32_WCE
|
||||
/* WinCE doesn't have HWND_MESSAGE */
|
||||
hWndParent = HWND_MESSAGE;
|
||||
|
Loading…
x
Reference in New Issue
Block a user