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

gg: fix image rendering

This commit is contained in:
Alexander Medvednikov
2020-08-05 03:15:37 +02:00
parent 8d9f38f670
commit f3ebd3a6e7
3 changed files with 154 additions and 97 deletions

View File

@ -25,13 +25,13 @@ fn main() {
create_window: true
window_title: 'Rectangles'
frame_fn: frame
init_fn: init_app
user_data: app
init_fn: init_images
)
app.gg.run()
}
fn init_app(mut app App) {
fn init_images(mut app App) {
app.image = gg.create_image('logo.png')
}