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:
authorDiego Borghetti <bdiego@gmail.com>2009-04-23 00:54:27 +0400
committerDiego Borghetti <bdiego@gmail.com>2009-04-23 00:54:27 +0400
commit6a5a94a8feadaf1cf4d5fca2b73ca68a0582c20b (patch)
tree477874e6c255c008e93e0d7695b1d020d8969afa /source/blender/editors/space_info
parent76d000fd9625981189d55fc3fbe4619aaeaf1676 (diff)
Add clipping option for bitmap draw mode and remove the "test code" from
space_info.c
Diffstat (limited to 'source/blender/editors/space_info')
-rw-r--r--source/blender/editors/space_info/space_info.c34
1 files changed, 0 insertions, 34 deletions
diff --git a/source/blender/editors/space_info/space_info.c b/source/blender/editors/space_info/space_info.c
index 66d807eb69c..12f23f03e66 100644
--- a/source/blender/editors/space_info/space_info.c
+++ b/source/blender/editors/space_info/space_info.c
@@ -48,7 +48,6 @@
#include "ED_screen.h"
#include "BIF_gl.h"
-#include "BLF_api.h"
#include "WM_api.h"
#include "WM_types.h"
@@ -133,7 +132,6 @@ static void info_main_area_draw(const bContext *C, ARegion *ar)
// SpaceInfo *sinfo= (SpaceInfo*)CTX_wm_space_data(C);
View2D *v2d= &ar->v2d;
float col[3];
- float width, height;
/* clear and setup matrix */
UI_GetThemeColor3fv(TH_BACK, col);
@@ -143,38 +141,6 @@ static void info_main_area_draw(const bContext *C, ARegion *ar)
UI_view2d_view_ortho(C, v2d);
/* data... */
- // XXX 2.50 Testing new font library - Diego
- glColor3f(1.0, 0.0, 0.0);
- BLF_aspect(1.0);
-
- BLF_size(14, 96);
- BLF_position(5.0, 5.0, 0.0);
-
- width= BLF_width("Hello Blender, size 14, dpi 96");
- height= BLF_height("Hello Blender, size 14, dpi 96");
-
- glRectf(7.0, 20.0, 7.0+width, 20.0+height);
- glRectf(5.0+width+10.0, 3.0, 5.0+width+10.0+width, 3.0+height);
- BLF_draw("Hello Blender, size 14, dpi 96");
-
- glColor3f(0.0, 0.0, 1.0);
- BLF_size(11, 96);
- BLF_position(200.0, 50.0, 0.0);
- BLF_enable(BLF_ROTATION);
- BLF_rotation(45.0f);
- BLF_draw("Another Hello Blender, size 11 and dpi 96!!");
-
- glColor3f(0.8, 0.0, 0.7);
- BLF_size(12, 72);
- BLF_position(200.0, 100.0, 0.0);
- BLF_rotation(180.0f);
- BLF_draw("Hello World, size 12, dpi 72");
-
- glColor3f(0.8, 0.7, 0.5);
- BLF_size(12, 96);
- BLF_position(5.0, 200.0, 0.0);
- BLF_disable(BLF_ROTATION);
- BLF_draw("And this make a new glyph cache!!");
/* reset view matrix */
UI_view2d_view_restore(C);