The only addition to the command-line parameters is the "-i" option. This specifies which image in the list is the one you want to end up with as the output (-o). If you do not specify this parameter, then the first file listed will be used instead (which is what happens in the current palcat).
Examples of use: palcat -o merged.bmp -i image2.bmp image1.bmp image2.bmp image3.bmpWill give you a copy of image2.bmp with the palettes of image1.bmp and image3.bmp attached in the corresponding order. The colors used in image2.bmp will be shifted according to how many palette entries are in image1.bmp.
palcat -o merged.bmp image1.bmp image2.bmp image3.bmpWill give you a copy of image1.bmp with the palettes of image2.bmp and image3.bmp attached in the corresponding order.
palcat -o merged.bmp -o wtf.bmp image1.bmp image2.bmp image3.bmpWill give you a copy of wtf.bmp with the palettes of image1.bmp, image2.bmp, and image3.bmp pre-appended in the corresponding order.
The patch is attached to this message, which also corrects a typo in scc_param.c I have tested the modifications, and they seem to work fine.
Any comments would be appreciated. -SJU
palcat.diff
Description: Binary data
_______________________________________________ ScummC-general mailing list [email protected] https://mail.gna.org/listinfo/scummc-general
