svn merge ^/trunk/blender -r48333:48370
[blender.git] / source / blender / imbuf / intern / allocimbuf.c
index 0ecd5cf..93ee5a4 100644 (file)
@@ -352,7 +352,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] = 150.0 / 0.0254; /* 150dpi -> 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) {