mirror of
https://github.com/freedoom/freedoom.git
synced 2025-09-05 07:25:45 -04:00
Merge pull request #984 from selliott512/fix-gfx-offsets-signed-int
scripts: Signed ints for grAb in fix-gfx-offsets
This commit is contained in:
commit
6a50fb2eef
1 changed files with 1 additions and 1 deletions
|
@ -20,7 +20,7 @@ class Graphic(object):
|
|||
reader = png.Reader(file=open(self.filepath, "rb"))
|
||||
for chunk in reader.chunks():
|
||||
if chunk[0] == "grAb":
|
||||
self.xoffset, self.yoffset = struct.unpack(">II", chunk[1])
|
||||
self.xoffset, self.yoffset = struct.unpack(">ii", chunk[1])
|
||||
self.has_offset = True
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue