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

freetype: minor fixes

This commit is contained in:
Alexander Medvednikov
2019-12-12 14:44:29 +03:00
parent f86ddcf496
commit 02c29624d8
2 changed files with 9 additions and 8 deletions

View File

@ -152,11 +152,12 @@ fn main() {
gg.clear(BackgroundColor)
// Try to load font
game.ft = freetype.new_context(gg.Cfg{
width: WinWidth
height: WinHeight
use_ortho: true
font_size: 18
scale: 2
width: WinWidth
height: WinHeight
use_ortho: true
font_size: 18
scale: 2
window_user_ptr: 0
})
game.font_loaded = (game.ft != 0 )
for {