forked from bartvdbraak/blender
missed tiff using 150 dpi as default in previous commit, use a define now.
This commit is contained in:
parent
f57c1c8b34
commit
d30c7356b7
@ -351,7 +351,7 @@ ImBuf *IMB_allocImBuf(unsigned int x, unsigned int y, uchar planes, unsigned int
|
||||
ibuf->planes = planes;
|
||||
ibuf->ftype = TGA;
|
||||
ibuf->channels = 4; /* float option, is set to other values when buffers get assigned */
|
||||
ibuf->ppm[0] = ibuf->ppm[1] = 72.0 / 0.0254; /* 72dpi -> pixels-per-meter */
|
||||
ibuf->ppm[0] = ibuf->ppm[1] = IMB_DPI_DEFAULT / 0.0254; /* IMB_DPI_DEFAULT -> pixels-per-meter */
|
||||
|
||||
if (flags & IB_rect) {
|
||||
if (imb_addrectImBuf(ibuf) == FALSE) {
|
||||
|
@ -72,5 +72,7 @@ typedef unsigned char uchar;
|
||||
#define TRUE 1
|
||||
#define FALSE 0
|
||||
|
||||
#define IMB_DPI_DEFAULT 72.0f
|
||||
|
||||
#endif /* __IMBUF_H__ */
|
||||
|
||||
|
@ -811,7 +811,7 @@ int imb_savetiff(ImBuf *ibuf, const char *name, int flags)
|
||||
yres = (float)(ibuf->ppm[1] * 0.0254);
|
||||
}
|
||||
else {
|
||||
xres = yres = 150.0f;
|
||||
xres = yres = IMB_DPI_DEFAULT;
|
||||
}
|
||||
|
||||
TIFFSetField(image, TIFFTAG_XRESOLUTION, xres);
|
||||
|
Loading…
Reference in New Issue
Block a user