Use ChunkyPNG for converting ICO bmp to png as gosu doesn't like doing it on the background thread, fixed Worker#service payload sometimes returning multiple events causing the json parser to have a bad time- also can support payloads larger than a megabyte now.

This commit is contained in:
2026-09-08 14:48:05 -05:00
parent 969a82a262
commit a7ae460446
5 changed files with 83 additions and 67 deletions

View File

@@ -122,7 +122,8 @@ module W3DHubLauncher
end
end
Gosu::Image.from_blob(image.width, image.height, blob)
# Gosu::Image.from_blob(image.width, image.height, blob)
ChunkyPNG::Canvas.from_rgba_stream(image.width, image.height, blob)
end
def image_data(image)