Added SDL VS 2010 project and fixed some compilations and small resize bug

This commit is contained in:
Xawotihs
2011-05-22 21:35:19 +00:00
parent c399262f30
commit 3b0f47c420
5 changed files with 584 additions and 9 deletions
+1 -1
View File
@@ -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) {