freetype: remove unused import
parent
4c7df98ac9
commit
e72dfc3212
|
@ -11,7 +11,6 @@ import (
|
||||||
glm
|
glm
|
||||||
gl
|
gl
|
||||||
filepath
|
filepath
|
||||||
time
|
|
||||||
)
|
)
|
||||||
|
|
||||||
#flag windows -I @VROOT/thirdparty/freetype/include
|
#flag windows -I @VROOT/thirdparty/freetype/include
|
||||||
|
@ -42,8 +41,8 @@ fn C.FT_Set_Pixel_Sizes()
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
const (
|
pub const (
|
||||||
DEFAULT_FONT_SIZE = 12
|
default_font_size = 12
|
||||||
)
|
)
|
||||||
|
|
||||||
struct Character {
|
struct Character {
|
||||||
|
@ -347,9 +346,9 @@ fn (ctx mut FreeType) private_draw_text(_x, _y int, utext ustring, cfg gx.TextCf
|
||||||
|
|
||||||
pub fn (ctx mut FreeType) draw_text_def(x, y int, text string) {
|
pub fn (ctx mut FreeType) draw_text_def(x, y int, text string) {
|
||||||
cfg := gx.TextCfg {
|
cfg := gx.TextCfg {
|
||||||
color: gx.Black,
|
color: gx.Black
|
||||||
size: DEFAULT_FONT_SIZE,
|
size: default_font_size
|
||||||
align: gx.ALIGN_LEFT,
|
align: gx.ALIGN_LEFT
|
||||||
}
|
}
|
||||||
ctx.draw_text(x, y, text, cfg)
|
ctx.draw_text(x, y, text, cfg)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue