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:
authorCampbell Barton <ideasman42@gmail.com>2020-06-11 07:56:09 +0300
committerCampbell Barton <ideasman42@gmail.com>2020-06-11 08:04:11 +0300
commit2c463a82500e4ada715a4a0a8a00c0eb00dceb79 (patch)
tree57d285990259830abc994647f2d4e4d3856811bd /source/blender/imbuf/IMB_imbuf_types.h
parent04390941050b1b790cbe812e9a8867cb56c93565 (diff)
ImBuf: use more accurate DPI/PPM conversion
Use 0.0254 for conversion as 39.3700787 isn't exactly 1/0.0254 and can't be written as a round float/double.
Diffstat (limited to 'source/blender/imbuf/IMB_imbuf_types.h')
-rw-r--r--source/blender/imbuf/IMB_imbuf_types.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/imbuf/IMB_imbuf_types.h b/source/blender/imbuf/IMB_imbuf_types.h
index 4a5f8cc1bfe..ddc8394264a 100644
--- a/source/blender/imbuf/IMB_imbuf_types.h
+++ b/source/blender/imbuf/IMB_imbuf_types.h
@@ -209,7 +209,7 @@ typedef struct ImBuf {
*/
float *rect_float;
- /* resolution - pixels per meter */
+ /** Resolution in pixels per meter. Multiply by `0.0254` for DPI. */
double ppm[2];
/* tiled pixel storage */