Small fix: increased precision print of color sampling float images with 1 digit.
Now it prints 5, which shows better whether a buffer is float, or half float.
This commit is contained in:
@@ -146,7 +146,7 @@ void ED_image_draw_info(Scene *scene, ARegion *ar, int color_manage, int use_def
|
|||||||
if (channels >= 3) {
|
if (channels >= 3) {
|
||||||
glColor3ubv(red);
|
glColor3ubv(red);
|
||||||
if (fp)
|
if (fp)
|
||||||
BLI_snprintf(str, sizeof(str), " R:%-.4f", fp[0]);
|
BLI_snprintf(str, sizeof(str), " R:%-.5f", fp[0]);
|
||||||
else if (cp)
|
else if (cp)
|
||||||
BLI_snprintf(str, sizeof(str), " R:%-3d", cp[0]);
|
BLI_snprintf(str, sizeof(str), " R:%-3d", cp[0]);
|
||||||
else
|
else
|
||||||
@@ -157,7 +157,7 @@ void ED_image_draw_info(Scene *scene, ARegion *ar, int color_manage, int use_def
|
|||||||
|
|
||||||
glColor3ubv(green);
|
glColor3ubv(green);
|
||||||
if (fp)
|
if (fp)
|
||||||
BLI_snprintf(str, sizeof(str), " G:%-.4f", fp[1]);
|
BLI_snprintf(str, sizeof(str), " G:%-.5f", fp[1]);
|
||||||
else if (cp)
|
else if (cp)
|
||||||
BLI_snprintf(str, sizeof(str), " G:%-3d", cp[1]);
|
BLI_snprintf(str, sizeof(str), " G:%-3d", cp[1]);
|
||||||
else
|
else
|
||||||
@@ -168,7 +168,7 @@ void ED_image_draw_info(Scene *scene, ARegion *ar, int color_manage, int use_def
|
|||||||
|
|
||||||
glColor3ubv(blue);
|
glColor3ubv(blue);
|
||||||
if (fp)
|
if (fp)
|
||||||
BLI_snprintf(str, sizeof(str), " B:%-.4f", fp[2]);
|
BLI_snprintf(str, sizeof(str), " B:%-.5f", fp[2]);
|
||||||
else if (cp)
|
else if (cp)
|
||||||
BLI_snprintf(str, sizeof(str), " B:%-3d", cp[2]);
|
BLI_snprintf(str, sizeof(str), " B:%-3d", cp[2]);
|
||||||
else
|
else
|
||||||
|
Reference in New Issue
Block a user