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:
authorTon Roosendaal <ton@blender.org>2011-02-26 21:39:21 +0300
committerTon Roosendaal <ton@blender.org>2011-02-26 21:39:21 +0300
commit7a313265e1c2c4629318ee4de157094ef45c20f8 (patch)
tree3ced36a018134957ca84462fd5bf4cde453a359f /source/blender
parent2f0d93ba563ae2c87a088f21113d5559ab9abfc4 (diff)
Sampling float colors in Image Editor only showed 3 digits precision.
Let's make it four! :)
Diffstat (limited to 'source/blender')
-rw-r--r--source/blender/editors/space_image/image_draw.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/editors/space_image/image_draw.c b/source/blender/editors/space_image/image_draw.c
index 4abddf18c20..2f79131c1e7 100644
--- a/source/blender/editors/space_image/image_draw.c
+++ b/source/blender/editors/space_image/image_draw.c
@@ -138,11 +138,11 @@ void draw_image_info(ARegion *ar, int channels, int x, int y, char *cp, float *f
if(fp) {
if(channels==4)
- ofs+= BLI_snprintf(str + ofs, sizeof(str)-ofs, "| R: %.3f G: %.3f B: %.3f A: %.3f ", fp[0], fp[1], fp[2], fp[3]);
+ ofs+= BLI_snprintf(str + ofs, sizeof(str)-ofs, "| R: %.4f G: %.4f B: %.4f A: %.4f ", fp[0], fp[1], fp[2], fp[3]);
else if(channels==1)
- ofs+= BLI_snprintf(str + ofs, sizeof(str)-ofs, "| Val: %.3f ", fp[0]);
+ ofs+= BLI_snprintf(str + ofs, sizeof(str)-ofs, "| Val: %.4f ", fp[0]);
else if(channels==3)
- ofs+= BLI_snprintf(str + ofs, sizeof(str)-ofs, "| R: %.3f G: %.3f B: %.3f ", fp[0], fp[1], fp[2]);
+ ofs+= BLI_snprintf(str + ofs, sizeof(str)-ofs, "| R: %.4f G: %.4f B: %.4f ", fp[0], fp[1], fp[2]);
}
if(zp)