summaryrefslogtreecommitdiff
path: root/tools/pokemontools/png.py
diff options
context:
space:
mode:
authorRangi <remy.oukaour+rangi42@gmail.com>2020-06-14 18:08:43 -0400
committerRangi <remy.oukaour+rangi42@gmail.com>2020-06-14 18:08:43 -0400
commit94a70b63cf7f1a9dbfc14fcee8e390791fc17a1b (patch)
treed1b2bb44621d8c2ebae4a613669eb75e37e507ad /tools/pokemontools/png.py
parent7f6bc3d3826fe7727bdc8714aa0295a712a548c3 (diff)
Sync tools with pokecrystal (fixes warnings when building lzcomp)
palette.c and png_dimensions.c will be synced when they are used.
Diffstat (limited to 'tools/pokemontools/png.py')
-rw-r--r--tools/pokemontools/png.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/pokemontools/png.py b/tools/pokemontools/png.py
index 3d6934a9..db6da128 100644
--- a/tools/pokemontools/png.py
+++ b/tools/pokemontools/png.py
@@ -646,9 +646,9 @@ class Writer:
# http://www.w3.org/TR/PNG/#11IHDR
write_chunk(outfile, b'IHDR',
- struct.pack("!2I5B", int(self.width), int(self.height),
- self.bitdepth, int(self.color_type),
- 0, 0, int(self.interlace)))
+ struct.pack("!2I5B", self.width, self.height,
+ self.bitdepth, self.color_type,
+ 0, 0, self.interlace))
# See :chunk:order
# http://www.w3.org/TR/PNG/#11gAMA