mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2025-01-12 03:58:55 +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) {
|
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("width", width*scale)
|
||||||
canvas.Set("height", height*scale)
|
canvas.Set("height", height*scale)
|
||||||
return scale, nil
|
return scale, nil
|
||||||
|
Loading…
Reference in New Issue
Block a user