Fix banner cache loading.
This commit is contained in:
@@ -604,8 +604,9 @@ SDL_Surface *mySDL_LoadSurface( CString file )
|
|||||||
|
|
||||||
/* Create the surface. */
|
/* Create the surface. */
|
||||||
SDL_Surface *img = SDL_CreateRGBSurface(
|
SDL_Surface *img = SDL_CreateRGBSurface(
|
||||||
h.width, h.height, h.bpp, h.pitch,
|
SDL_SWSURFACE, h.width, h.height, h.bpp,
|
||||||
h.Rmask, h.Gmask, h.Bmask, h.Amask);
|
h.Rmask, h.Gmask, h.Bmask, h.Amask);
|
||||||
|
ASSERT( h.pitch == img->pitch );
|
||||||
|
|
||||||
if( fread(img->pixels, h.height * h.pitch, 1, f) != 1 )
|
if( fread(img->pixels, h.height * h.pitch, 1, f) != 1 )
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user