Skip to content

Commit

Permalink
Update IMG_png.c
Browse files Browse the repository at this point in the history
  • Loading branch information
Starbuck5 committed Aug 5, 2024
1 parent 1304707 commit 2381370
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/IMG_png.c
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,7 @@ int IMG_isPNG(SDL_RWops *src)
}

SDL_Surface *IMG_LoadPNG_RW(SDL_RWops *src) {
Sint64 start;
png_image image;
Sint64 src_length;
Uint8* raw_image_buffer;
Expand Down Expand Up @@ -283,7 +284,7 @@ SDL_Surface *IMG_LoadPNG_RW(SDL_RWops *src) {

int objects_read = SDL_RWread(src, raw_image_buffer, 1, src_length); // ec

printf("objects_read=%i\n", objects_read);
//printf("objects_read=%i\n", objects_read);

if (lib.png_image_begin_read_from_memory(&image, raw_image_buffer, src_length)) {
/* If the image is natively encoded with a colormap, set the format to
Expand Down

0 comments on commit 2381370

Please sign in to comment.