diff --git a/misc/scripts/png2c.py b/misc/scripts/png2c.py index 5f451aa05d..fe96def079 100755 --- a/misc/scripts/png2c.py +++ b/misc/scripts/png2c.py @@ -56,8 +56,8 @@ for path in sys.argv[1:]: # Try to naively get its size if necessary if with_size: - width = bytes[19] + 16*bytes[18] + 256*bytes[17] + 4096*bytes[16] - height = bytes[23] + 16*bytes[22] + 256*bytes[21] + 4096*bytes[20] + width = bytes[19] + 16*bytes[18] + 256*bytes[17] + 65536*bytes[16] + height = bytes[23] + 16*bytes[22] + 256*bytes[21] + 65536*bytes[20] size_suffix = "_%dx%d" % (width, height) # Create the C header