mirror of
https://github.com/bryanthaboi/gen1recomp.git
synced 2026-08-16 16:21:30 +02:00
CLOSES #1090, CLOSES #1093, CLOSES #1094, CLOSES #1095, CLOSES #1098, CLOSES #1102, CLOSES #1105, CLOSES #1106, CLOSES #1108, CLOSES #1109, CLOSES #1110, CLOSES #1111, CLOSES #1113, CLOSES #1114, CLOSES #1117, CLOSES #1118, CLOSES #1121, CLOSES #1122, CLOSES #1123, CLOSES #1124, CLOSES #1126, CLOSES #1127, CLOSES #1128, CLOSES #1131, CLOSES #1132, CLOSES #1134, CLOSES #1137, CLOSES #1141
This commit is contained in:
@@ -241,7 +241,10 @@ function RomExtractorGen2:writeCompressedPic(label, tiles, relative)
|
||||
while #pixels < byteLength do pixels[#pixels + 1] = 0 end
|
||||
while #pixels > byteLength do table.remove(pixels) end
|
||||
pixels = ImageWriter.columnsToRows(pixels, tiles, tiles)
|
||||
self:write2bpp(pixels, size, size, relative)
|
||||
-- pokegold engine/battle/core.asm GetTrainerBackpic: no hardware masking,
|
||||
-- so matte the white backdrop like Gen 1's writeCompressedPic does.
|
||||
self:save(ImageWriter.matteColor0(
|
||||
ImageWriter.decode2bpp(pixels, size, size)), relative)
|
||||
end
|
||||
|
||||
function RomExtractorGen2:extractConstants()
|
||||
|
||||
Reference in New Issue
Block a user