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 08a86d7 commit f542317Copy full SHA for f542317
2 files changed
vlib/sokol/gfx/gfx.c.v
@@ -179,7 +179,9 @@ pub fn query_desc() Desc {
179
180
@[inline]
181
pub fn query_backend() Backend {
182
- return C.sg_query_backend()
+ unsafe {
183
+ return Backend(C.sg_query_backend())
184
+ }
185
}
186
187
vlib/sokol/sapp/sapp_structs.c.v
@@ -301,7 +301,7 @@ pub mut:
301
pub type Event = C.sapp_event
302
303
pub fn (e &Event) str() string {
304
- return 'evt: frame_count=${e.frame_count}, type=${e.type}'
+ return 'evt: frame_count=${e.frame_count}, type=${EventType(e.type)}'
305
306
307
@[typedef]
0 commit comments