From c4d8687f74c2b2e9e8dc88182f097eaca724a5ed Mon Sep 17 00:00:00 2001 From: YukiiVR <118682621+YukiiVR@users.noreply.github.com> Date: Thu, 12 Dec 2024 01:54:35 +0000 Subject: [PATCH] gg: add `icon` field to gg.Config, for easier access (fix #23135) (#23138) --- vlib/gg/gg.c.v | 2 ++ 1 file changed, 2 insertions(+) diff --git a/vlib/gg/gg.c.v b/vlib/gg/gg.c.v index 3542e5de74324f..773e8c6a29a17b 100644 --- a/vlib/gg/gg.c.v +++ b/vlib/gg/gg.c.v @@ -58,6 +58,7 @@ pub: create_window bool // TODO: implement or deprecate // window_user_ptr voidptr window_title string // the desired title of the window + icon sapp.IconDesc html5_canvas_name string = 'canvas' borderless_window bool // TODO: implement or deprecate always_on_top bool // TODO: implement or deprecate @@ -477,6 +478,7 @@ pub fn new_context(cfg Config) &Context { // fail_userdata_cb: gg_fail_fn cleanup_userdata_cb: gg_cleanup_fn window_title: &char(cfg.window_title.str) + icon: cfg.icon html5_canvas_name: &char(cfg.html5_canvas_name.str) width: cfg.width height: cfg.height