Added support for outputting bmp's
The padding is slightly messed up, so it produces somewhat trunkcated images however it works. I'll try and fix it later but I have to go home now. Its atleast usable at this stage. I moved bmp_decode.c to bmp.c and cleaned it up a little bit. Kent
This commit is contained in:
@@ -53,6 +53,9 @@ int BIF_write_ibuf(ImBuf *ibuf, char *name)
|
||||
else if ((R.r.imtype==R_PNG)) {
|
||||
ibuf->ftype= PNG;
|
||||
}
|
||||
else if ((R.r.imtype==R_BMP)) {
|
||||
ibuf->ftype= BMP;
|
||||
}
|
||||
else if ((R.r.imtype==R_TARGA) || (R.r.imtype==R_PNG)) {
|
||||
// fall back to Targa if PNG writing is not supported
|
||||
ibuf->ftype= TGA;
|
||||
|
||||
Reference in New Issue
Block a user