Skip to content

Commit 435cdf3

Browse files
billyquithSiegeLord
authored andcommitted
No need to use macro.
1 parent d77ca59 commit 435cdf3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

addons/image/png.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,7 @@ static ALLEGRO_BITMAP *really_load_png(png_structp png_ptr, png_infop info_ptr,
299299

300300
case 32:
301301
for (i = 0; i < width; i++) {
302-
uint32_t pix = bmp_read32(ptr);
302+
uint32_t pix = *(uint32_t*)ptr;
303303
int r = pix & 0xff;
304304
int g = (pix >> 8) & 0xff;
305305
int b = (pix >> 16) & 0xff;

0 commit comments

Comments
 (0)