examples: fix gg/freetype example

pull/2821/head
Alexander Medvednikov 2019-11-20 07:35:13 +03:00
parent 759644ab36
commit 01dc267e20
1 changed files with 6 additions and 6 deletions

View File

@ -34,11 +34,11 @@ fn main() {
gg.clear(bg_color)
// Try to load font
ctx.ft = freetype.new_context(gg.Cfg{
width: win_width
height: win_height
use_ortho: true
font_size: 18
scale: 2
width: win_width
height: win_height
use_ortho: true
font_size: 18
scale: 2
})
for {
gg.clear(bg_color)
@ -51,6 +51,6 @@ fn main() {
}
}
fn (ctx mut Context) draw() {
fn (ctx Context) draw() {
}