From 571c0d7c62daeebeae30fb03f5712385bd3a95f0 Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Wed, 24 Jan 2018 01:44:36 -0500 Subject: [PATCH] lbm: use correct variable to check color planes. --- IMG_lbm.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/IMG_lbm.c b/IMG_lbm.c index 43291439..d50a9042 100755 --- a/IMG_lbm.c +++ b/IMG_lbm.c @@ -245,7 +245,7 @@ SDL_Surface *IMG_LoadLBM_RW( SDL_RWops *src ) goto done; } - if ( ( Image = SDL_CreateRGBSurface( SDL_SWSURFACE, width, bmhd.h, (bmhd.planes==24 || flagHAM==1)?24:8, 0, 0, 0, 0 ) ) == NULL ) + if ( ( Image = SDL_CreateRGBSurface( SDL_SWSURFACE, width, bmhd.h, (nbplanes==24 || flagHAM==1)?24:8, 0, 0, 0, 0 ) ) == NULL ) goto done; if ( bmhd.mask & 2 ) /* There is a transparent color */ @@ -272,7 +272,7 @@ SDL_Surface *IMG_LoadLBM_RW( SDL_RWops *src ) /* The 32 last colors are the same but divided by 2 */ /* Some Amiga pictures save 64 colors with 32 last wrong colors, */ /* they shouldn't !, and here we overwrite these 32 bad colors. */ - if ( (nbcolors==32 || flagEHB ) && (1< (1< (1<