From ec8b89988929ff79e049f96c599e3a8bad935528 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Tue, 15 Jun 2004 06:07:52 +0000 Subject: [PATCH] fix SDL dep --- stepmania/src/RageSurface_Load_PNG.cpp | 6 ------ 1 file changed, 6 deletions(-) diff --git a/stepmania/src/RageSurface_Load_PNG.cpp b/stepmania/src/RageSurface_Load_PNG.cpp index 11e53152f4..2e7dbb9868 100644 --- a/stepmania/src/RageSurface_Load_PNG.cpp +++ b/stepmania/src/RageSurface_Load_PNG.cpp @@ -2,7 +2,6 @@ #include "RageSurface_Load_PNG.h" #include "RageUtil.h" #include "RageLog.h" -#include "SDL_utils.h" #include "RageFile.h" #include "RageSurface.h" @@ -95,11 +94,6 @@ static RageSurface *RageSurface_Load_PNG( RageFile *f, const char *fn, char erro { img = CreateSurfaceFrom( width, height, 32, 0, 0, 0, 0, NULL, width*4 ); png_destroy_read_struct( &png, &info_ptr, NULL ); - if( !img ) - { - strcpy( errorbuf, SDL_GetError() ); - return NULL; - } return img; }