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:
Diffstat (limited to 'source/blender/editors/space_image/image_draw.c')
-rw-r--r--source/blender/editors/space_image/image_draw.c30
1 files changed, 15 insertions, 15 deletions
diff --git a/source/blender/editors/space_image/image_draw.c b/source/blender/editors/space_image/image_draw.c
index 92ceb00d5c0..4f66506d28b 100644
--- a/source/blender/editors/space_image/image_draw.c
+++ b/source/blender/editors/space_image/image_draw.c
@@ -196,21 +196,21 @@ void ED_image_draw_info(Scene *scene,
BLF_color3ub(blf_mono_font, 255, 255, 255);
SNPRINTF(str, "X:%-4d Y:%-4d |", x, y);
BLF_position(blf_mono_font, dx, dy, 0);
- BLF_draw_ascii(blf_mono_font, str, sizeof(str));
+ BLF_draw(blf_mono_font, str, sizeof(str));
dx += BLF_width(blf_mono_font, str, sizeof(str));
if (zp) {
BLF_color3ub(blf_mono_font, 255, 255, 255);
SNPRINTF(str, " Z:%-.4f |", 0.5f + 0.5f * (((float)*zp) / (float)0x7fffffff));
BLF_position(blf_mono_font, dx, dy, 0);
- BLF_draw_ascii(blf_mono_font, str, sizeof(str));
+ BLF_draw(blf_mono_font, str, sizeof(str));
dx += BLF_width(blf_mono_font, str, sizeof(str));
}
if (zpf) {
BLF_color3ub(blf_mono_font, 255, 255, 255);
SNPRINTF(str, " Z:%-.3f |", *zpf);
BLF_position(blf_mono_font, dx, dy, 0);
- BLF_draw_ascii(blf_mono_font, str, sizeof(str));
+ BLF_draw(blf_mono_font, str, sizeof(str));
dx += BLF_width(blf_mono_font, str, sizeof(str));
}
@@ -223,7 +223,7 @@ void ED_image_draw_info(Scene *scene,
}
BLF_color3ub(blf_mono_font, 255, 255, 255);
BLF_position(blf_mono_font, dx, dy, 0);
- BLF_draw_ascii(blf_mono_font, str, sizeof(str));
+ BLF_draw(blf_mono_font, str, sizeof(str));
dx += BLF_width(blf_mono_font, str, sizeof(str));
}
@@ -239,7 +239,7 @@ void ED_image_draw_info(Scene *scene,
STRNCPY(str, " R:-");
}
BLF_position(blf_mono_font, dx, dy, 0);
- BLF_draw_ascii(blf_mono_font, str, sizeof(str));
+ BLF_draw(blf_mono_font, str, sizeof(str));
dx += BLF_width(blf_mono_font, str, sizeof(str));
BLF_color3ubv(blf_mono_font, green);
@@ -253,7 +253,7 @@ void ED_image_draw_info(Scene *scene,
STRNCPY(str, " G:-");
}
BLF_position(blf_mono_font, dx, dy, 0);
- BLF_draw_ascii(blf_mono_font, str, sizeof(str));
+ BLF_draw(blf_mono_font, str, sizeof(str));
dx += BLF_width(blf_mono_font, str, sizeof(str));
BLF_color3ubv(blf_mono_font, blue);
@@ -267,7 +267,7 @@ void ED_image_draw_info(Scene *scene,
STRNCPY(str, " B:-");
}
BLF_position(blf_mono_font, dx, dy, 0);
- BLF_draw_ascii(blf_mono_font, str, sizeof(str));
+ BLF_draw(blf_mono_font, str, sizeof(str));
dx += BLF_width(blf_mono_font, str, sizeof(str));
if (channels == 4) {
@@ -282,7 +282,7 @@ void ED_image_draw_info(Scene *scene,
STRNCPY(str, "- ");
}
BLF_position(blf_mono_font, dx, dy, 0);
- BLF_draw_ascii(blf_mono_font, str, sizeof(str));
+ BLF_draw(blf_mono_font, str, sizeof(str));
dx += BLF_width(blf_mono_font, str, sizeof(str));
}
@@ -307,7 +307,7 @@ void ED_image_draw_info(Scene *scene,
SNPRINTF(str, " | CM R:%-.4f G:%-.4f B:%-.4f", rgba[0], rgba[1], rgba[2]);
BLF_position(blf_mono_font, dx, dy, 0);
- BLF_draw_ascii(blf_mono_font, str, sizeof(str));
+ BLF_draw(blf_mono_font, str, sizeof(str));
dx += BLF_width(blf_mono_font, str, sizeof(str));
}
}
@@ -429,12 +429,12 @@ void ED_image_draw_info(Scene *scene,
SNPRINTF(str, "V:%-.4f", val);
BLF_position(blf_mono_font, dx, dy, 0);
- BLF_draw_ascii(blf_mono_font, str, sizeof(str));
+ BLF_draw(blf_mono_font, str, sizeof(str));
dx += BLF_width(blf_mono_font, str, sizeof(str));
SNPRINTF(str, " L:%-.4f", lum);
BLF_position(blf_mono_font, dx, dy, 0);
- BLF_draw_ascii(blf_mono_font, str, sizeof(str));
+ BLF_draw(blf_mono_font, str, sizeof(str));
}
else if (channels >= 3) {
rgb_to_hsv(finalcol[0], finalcol[1], finalcol[2], &hue, &sat, &val);
@@ -442,22 +442,22 @@ void ED_image_draw_info(Scene *scene,
SNPRINTF(str, "H:%-.4f", hue);
BLF_position(blf_mono_font, dx, dy, 0);
- BLF_draw_ascii(blf_mono_font, str, sizeof(str));
+ BLF_draw(blf_mono_font, str, sizeof(str));
dx += BLF_width(blf_mono_font, str, sizeof(str));
SNPRINTF(str, " S:%-.4f", sat);
BLF_position(blf_mono_font, dx, dy, 0);
- BLF_draw_ascii(blf_mono_font, str, sizeof(str));
+ BLF_draw(blf_mono_font, str, sizeof(str));
dx += BLF_width(blf_mono_font, str, sizeof(str));
SNPRINTF(str, " V:%-.4f", val);
BLF_position(blf_mono_font, dx, dy, 0);
- BLF_draw_ascii(blf_mono_font, str, sizeof(str));
+ BLF_draw(blf_mono_font, str, sizeof(str));
dx += BLF_width(blf_mono_font, str, sizeof(str));
SNPRINTF(str, " L:%-.4f", lum);
BLF_position(blf_mono_font, dx, dy, 0);
- BLF_draw_ascii(blf_mono_font, str, sizeof(str));
+ BLF_draw(blf_mono_font, str, sizeof(str));
}
}
void draw_image_sample_line(SpaceImage *sima)