Page MenuHome

ipo_space_conversion_to_BIF_Drawstring2.patch

Authored By
James Crosby (sheep)
Nov 13 2013, 1:22 PM
Size
1 KB
Subscribers
None

ipo_space_conversion_to_BIF_Drawstring2.patch

Index: source/blender/src/drawipo.c
===================================================================
--- source/blender/src/drawipo.c (revision 11154)
+++ source/blender/src/drawipo.c (working copy)
@@ -44,7 +44,6 @@
#include <io.h>
#endif
-#include "BMF_Api.h"
#include "MEM_guardedalloc.h"
#include "BLI_blenlib.h"
@@ -80,6 +79,7 @@
#include "BIF_glutil.h"
#include "BIF_editseq.h"
#include "BIF_editaction.h"
+#include "BIF_language.h"
#include "BSE_drawipo.h"
#include "BSE_view.h"
@@ -133,8 +133,10 @@
str[len+1]= 0;
}
- glRasterPos2f(x, y);
- BMF_DrawString(G.fonts, str);
+ BIF_SetScale(1.0);
+ glRasterPos2f(x, y);
+ BIF_RasterPos(x, y);
+ BIF_DrawString(G.fonts, str, 0);
}
static void step_to_grid(float *step, int *macht)
@@ -707,8 +709,8 @@
ei= sipo->editipo;
for(a=0; a<sipo->totipo; a++, ei++) {
- if (BMF_GetStringWidth(G.font, ei->name) + 18 > ipowidth)
- ipowidth = BMF_GetStringWidth(G.font, ei->name) + 18;
+ if (BIF_GetStringWidth(G.font, ei->name, 0) + 18 > ipowidth)
+ ipowidth = BIF_GetStringWidth(G.font, ei->name, 0) + 18;
}
return ipowidth;

File Metadata

Mime Type
text/x-diff
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
ba/7e/e8e7263524c763d80de2e6480d68

Event Timeline