Page Menu
Home
Search
Configure Global Search
Log In
Files
F5422
ipo_space_conversion_to_BIF_Drawstring.patch
Public
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Authored By
James Crosby (sheep)
Nov 13 2013, 1:22 PM
Size
1010 B
Subscribers
None
ipo_space_conversion_to_BIF_Drawstring.patch
View Options
Index: drawipo.c
===================================================================
--- drawipo.c (revision 10795)
+++ 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"
@@ -134,7 +134,8 @@
}
glRasterPos2f(x, y);
- BMF_DrawString(G.fonts, str);
+ BIF_RasterPos(x, y);
+ BIF_DrawString(G.fonts, str, 0);
}
static void step_to_grid(float *step, int *macht)
@@ -707,8 +708,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
Details
Mime Type
text/x-diff
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
a8/83/15c4551c542ac848fff763573c9a
Event Timeline
Log In to Comment