Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKent Mein <mein@cs.umn.edu>2004-01-10 01:04:08 +0300
committerKent Mein <mein@cs.umn.edu>2004-01-10 01:04:08 +0300
commite3080c9580cc47c0329a62618a7b178d9da42ccb (patch)
tree4a3f7790335fd6e76e762a0584f0c240ab770795 /source/blender/src/writeimage.c
parentb430cd167f6d0694783bf76adc8cd7852c75ae11 (diff)
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
Diffstat (limited to 'source/blender/src/writeimage.c')
-rw-r--r--source/blender/src/writeimage.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/src/writeimage.c b/source/blender/src/writeimage.c
index 2b49a0f6fda..23ead94c22d 100644
--- a/source/blender/src/writeimage.c
+++ b/source/blender/src/writeimage.c
@@ -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;