examples: fix gg/freetype example
parent
759644ab36
commit
01dc267e20
|
@ -34,11 +34,11 @@ fn main() {
|
||||||
gg.clear(bg_color)
|
gg.clear(bg_color)
|
||||||
// Try to load font
|
// Try to load font
|
||||||
ctx.ft = freetype.new_context(gg.Cfg{
|
ctx.ft = freetype.new_context(gg.Cfg{
|
||||||
width: win_width
|
width: win_width
|
||||||
height: win_height
|
height: win_height
|
||||||
use_ortho: true
|
use_ortho: true
|
||||||
font_size: 18
|
font_size: 18
|
||||||
scale: 2
|
scale: 2
|
||||||
})
|
})
|
||||||
for {
|
for {
|
||||||
gg.clear(bg_color)
|
gg.clear(bg_color)
|
||||||
|
@ -51,6 +51,6 @@ fn main() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fn (ctx mut Context) draw() {
|
fn (ctx Context) draw() {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue