Skip to content

Commit

Permalink
gg: add icon field to gg.Config, for easier access (fix #23135) (#2…
Browse files Browse the repository at this point in the history
  • Loading branch information
YukiiVR authored Dec 12, 2024
1 parent b0ae5e9 commit c4d8687
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions vlib/gg/gg.c.v
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit c4d8687

Please sign in to comment.