Skip to content

Commit

Permalink
PyGRP
Browse files Browse the repository at this point in the history
- Fix issue setting pixels into BMP (fixes exporting frames with "One BMP per frame" setting)
  • Loading branch information
Zach Zahos committed Sep 30, 2022
1 parent c81f2af commit a888636
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion PyMS/PyGRP/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def grptobmp(path, pal, uncompressed, onebmp, grp, bmp='', frames=None, mute=Fal
name = '%s %s%sbmp' % (bmpname, str(n).zfill(3), os.extsep)
if not mute:
print("Writing BMP '%s'..." % name)
out.load_data(frame)
out.set_pixels(frame)
out.save_file(os.path.join(path,name))
if not mute:
print(" - '%s' written succesfully" % name)
Expand Down
4 changes: 2 additions & 2 deletions PyMS/versions.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@
"PyDAT":"3.0.2",
"PyFNT":"1.4.0",
"PyGOT":"1.4.0",
"PyGRP":"4.1.0",
"PyGRP":"4.1.1",
"PyICE":"2.1.0",
"PyLO":"1.9.0",
"PyMAP":"0.1.0",
"PyMPQ":"1.2.0",
"PyPAL":"1.7.0",
"PyPCX":"1.2.0",
"PyPCX":"1.2.1",
"PySPK":"1.0.0",
"PyTBL":"1.9.0",
"PyTILE":"2.3.0",
Expand Down
2 changes: 1 addition & 1 deletion PyPCX.pyw
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def main():
try:
pcx.load_file(args[0])
print(" - '%s' read successfully\nConverting '%s' to %s file '%s'..." % (args[0], args[0], ext.upper(), args[1]))
bmp.load_data(pcx.image,pcx.palette)
bmp.set_pixels(pcx.image,pcx.palette)
bmp.save_file(args[1])
except PyMSError as e:
print(repr(e))
Expand Down

0 comments on commit a888636

Please sign in to comment.