diff options
author | Ton Roosendaal <ton@blender.org> | 2009-04-10 20:30:28 +0400 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2009-04-10 20:30:28 +0400 |
commit | 4e81404d7eb00d7373ea8e4c01ae8bdfad287d72 (patch) | |
tree | e0414e0bea32707785061910589d173c112756a6 /source/blender/editors/space_image | |
parent | 61249337817d3699ca961c9e4007cb0cdb232051 (diff) |
2.5
Grand cleanup:
- removal of FTF and ftfont dir
- removal of text.c which wrapped it
- wrapped old text drawing code temporarily, need to decide how 'style'
will behave per editor when you draw strings outside interface code....
wouldn't be very useful to set fonts locally all over?
Diffstat (limited to 'source/blender/editors/space_image')
-rw-r--r-- | source/blender/editors/space_image/image_draw.c | 17 |
1 files changed, 6 insertions, 11 deletions
diff --git a/source/blender/editors/space_image/image_draw.c b/source/blender/editors/space_image/image_draw.c index ab042fce41f..b9407d26352 100644 --- a/source/blender/editors/space_image/image_draw.c +++ b/source/blender/editors/space_image/image_draw.c @@ -55,8 +55,8 @@ #include "ED_image.h" #include "ED_screen.h" +#include "UI_interface.h" #include "UI_resources.h" -#include "UI_text.h" #include "UI_view2d.h" #include "WM_api.h" @@ -147,16 +147,13 @@ static void draw_render_info(SpaceImage *sima, ARegion *ar) glRecti(rect.xmin, rect.ymin, rect.xmax, rect.ymax+1); UI_ThemeColor(TH_TEXT_HI); - glRasterPos2i(12, rect.ymin + 5); - UI_RasterPos(12, rect.ymin + 5); if(showspare) { - UI_DrawString(G.fonts, "(Previous)", 0); - glRasterPos2i(72, rect.ymin + 5); - UI_RasterPos(72, rect.ymin + 5); + UI_DrawString(12, rect.ymin + 5, "(Previous)"); + UI_DrawString(72, rect.ymin + 5, str); } - - UI_DrawString(G.fonts, str, 0); + else + UI_DrawString(12, rect.ymin + 5, str); } void draw_image_info(ARegion *ar, int channels, int x, int y, char *cp, float *fp, int *zp, float *zpf) @@ -192,10 +189,8 @@ void draw_image_info(ARegion *ar, int channels, int x, int y, char *cp, float *f glDisable(GL_BLEND); glColor3ub(255, 255, 255); - glRasterPos2i(10, 10); - UI_RasterPos(10, 10); - UI_DrawString(G.fonts, str, 0); + UI_DrawString(10, 10, str); } /* image drawing */ |