We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0e254e0 commit cbf4715Copy full SHA for cbf4715
vlib/gg/gg.v
@@ -107,7 +107,7 @@ mut:
107
// (so that the user can store image ids, not entire Image objects)
108
image_cache []Image
109
needs_refresh bool = true
110
- ticks int
+ ticks int // for ui mode only
111
pub:
112
native_rendering bool
113
pub mut:
@@ -236,6 +236,9 @@ fn gg_event_fn(ce &C.sapp_event, user_data voidptr) {
236
// e := unsafe { &sapp.Event(ce) }
237
mut e := unsafe { &Event(ce) }
238
mut g := unsafe { &Context(user_data) }
239
+ if g.ui_mode {
240
+ g.refresh_ui()
241
+ }
242
if e.typ == .mouse_down {
243
bitplace := int(e.mouse_button)
244
g.mbtn_mask |= byte(1 << bitplace)
0 commit comments