Skip to content

Commit

Permalink
examples: make gg/stars.v run on android
Browse files Browse the repository at this point in the history
  • Loading branch information
larpon committed Sep 21, 2024
1 parent 5f6015f commit 6879196
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions examples/gg/stars.v
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,9 @@ fn main() {

fn init_images(mut app App) {
mut logo_path := os.resource_abs_path(os.join_path('..', 'assets', 'logo.png'))
$if android {
logo_path = 'logo.png'
}
app.image = app.gg.create_image(logo_path) or { panic(err) }
}

Expand Down

0 comments on commit 6879196

Please sign in to comment.