Currently for kaguya image files and archives that are used for drawing over a specific part of the image only the replaced part is output without respecting the x/y offset that is needed to correctly overlay the images. I fixed this by using the res::Image::offset function to add the x/y offset as transparency. I also changed some of the involved variable names to better reflect their meaning. I only added this behaviour for the AN00/20/21 and AP2/3 file types since I do not have any files of the other types to test with.
As for automated testing I do not know what could be tested so I did not add any. I changed one existing test that used an incorrect offset so all tests pass now.
Please let me know if any changes are needed.
Currently for kaguya image files and archives that are used for drawing over a specific part of the image only the replaced part is output without respecting the x/y offset that is needed to correctly overlay the images. I fixed this by using the res::Image::offset function to add the x/y offset as transparency. I also changed some of the involved variable names to better reflect their meaning. I only added this behaviour for the AN00/20/21 and AP2/3 file types since I do not have any files of the other types to test with. As for automated testing I do not know what could be tested so I did not add any. I changed one existing test that used an incorrect offset so all tests pass now. Please let me know if any changes are needed.