1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

examples: fix gg/freetype example

This commit is contained in:
Alexander Medvednikov 2019-11-20 07:35:13 +03:00
parent 759644ab36
commit 01dc267e20

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() {
}