File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -386,7 +386,7 @@ SDL_Surface *IMG_LoadJPG_RW(SDL_RWops *src)
386386 }
387387 start = SDL_RWtell (src );
388388
389- if ( ! IMG_Init (IMG_INIT_JPG ) ) {
389+ if ( ( IMG_Init (IMG_INIT_JPG ) & IMG_INIT_JPG ) == 0 ) {
390390 return NULL ;
391391 }
392392
Original file line number Diff line number Diff line change @@ -362,7 +362,7 @@ SDL_Surface *IMG_LoadPNG_RW(SDL_RWops *src)
362362 }
363363 start = SDL_RWtell (src );
364364
365- if ( ! IMG_Init (IMG_INIT_PNG ) ) {
365+ if ( ( IMG_Init (IMG_INIT_PNG ) & IMG_INIT_PNG ) == 0 ) {
366366 return NULL ;
367367 }
368368
Original file line number Diff line number Diff line change @@ -217,7 +217,7 @@ SDL_Surface* IMG_LoadTIF_RW(SDL_RWops* src)
217217 }
218218 start = SDL_RWtell (src );
219219
220- if ( ! IMG_Init (IMG_INIT_TIF ) ) {
220+ if ( ( IMG_Init (IMG_INIT_TIF ) & IMG_INIT_TIF ) == 0 ) {
221221 return NULL ;
222222 }
223223
Original file line number Diff line number Diff line change @@ -196,7 +196,7 @@ SDL_Surface *IMG_LoadWEBP_RW(SDL_RWops *src)
196196
197197 start = SDL_RWtell (src );
198198
199- if ( ! IMG_Init (IMG_INIT_WEBP ) ) {
199+ if ( ( IMG_Init (IMG_INIT_WEBP ) & IMG_INIT_WEBP ) == 0 ) {
200200 goto error ;
201201 }
202202
You can’t perform that action at this time.
0 commit comments