mirror of
https://github.com/vlang/v.git
synced 2025-09-14 06:52:36 +03:00
gg: use html5_canvas_name
as the name of the canvas in gg.js.v
too, similarly to gg.c.v
This commit is contained in:
parent
33965bc29b
commit
be1270540b
3 changed files with 7 additions and 7 deletions
|
@ -171,7 +171,7 @@ fn main() {
|
|||
user_data: game
|
||||
frame_fn: frame
|
||||
event_fn: on_event
|
||||
canvas: 'canvas'
|
||||
html5_canvas_name: 'canvas'
|
||||
)
|
||||
game.init_game()
|
||||
game.gg.run() // Run the render loop in the main thread
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue