mirror of
https://github.com/vlang/v.git
synced 2025-09-13 22:42:26 +03:00
freetype: minor fixes
This commit is contained in:
parent
f86ddcf496
commit
02c29624d8
2 changed files with 9 additions and 8 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue