mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-24 02:38:53 +01:00
Change <title> on ui.Start (#56)
This commit is contained in:
parent
7b47e37d34
commit
1a4b25b23f
@ -85,6 +85,8 @@ func init() {
|
||||
}
|
||||
|
||||
func Start(width, height, scale int, title string) (actualScale int, err error) {
|
||||
doc := js.Global.Get("document")
|
||||
doc.Set("title", title)
|
||||
canvas.Set("width", width*scale)
|
||||
canvas.Set("height", height*scale)
|
||||
return scale, nil
|
||||
|
Loading…
Reference in New Issue
Block a user