From 68791969e50dd07183ac099fe789ae09acf84059 Mon Sep 17 00:00:00 2001 From: lmp Date: Sat, 21 Sep 2024 19:53:38 +0200 Subject: [PATCH] examples: make `gg/stars.v` run on android --- examples/gg/stars.v | 3 +++ 1 file changed, 3 insertions(+) diff --git a/examples/gg/stars.v b/examples/gg/stars.v index 888fd3b5f89aec..8babd0a9e7edc6 100644 --- a/examples/gg/stars.v +++ b/examples/gg/stars.v @@ -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) } }