Added SDL VS 2010 project and fixed some compilations and small resize bug
This commit is contained in:
@@ -848,7 +848,7 @@ SDL_WM_ToggleFullScreen(SDL_Surface * surface)
|
||||
/* Copy the old bits out */
|
||||
length = SDL_PublicSurface->w * SDL_PublicSurface->format->BytesPerPixel;
|
||||
pixels = SDL_malloc(SDL_PublicSurface->h * length);
|
||||
if (pixels) {
|
||||
if (pixels && SDL_PublicSurface->pixels) {
|
||||
src = (Uint8*)SDL_PublicSurface->pixels;
|
||||
dst = (Uint8*)pixels;
|
||||
for (row = 0; row < SDL_PublicSurface->h; ++row) {
|
||||
|
||||
Reference in New Issue
Block a user