ui: Fix comments

This commit is contained in:
Hajime Hoshi 2020-02-09 21:56:48 +09:00
parent 6250dd9f9b
commit 90dba581e2

4
run.go
View File

@ -470,6 +470,8 @@ func SetMaxTPS(tps int) {
} }
// IsScreenTransparent reports whether the window is transparent. // IsScreenTransparent reports whether the window is transparent.
//
// IsScreenTransparent is concurrent-safe.
func IsScreenTransparent() bool { func IsScreenTransparent() bool {
return uiDriver().IsScreenTransparent() return uiDriver().IsScreenTransparent()
} }
@ -479,6 +481,8 @@ func IsScreenTransparent() bool {
// SetScreenTransparent panics if SetScreenTransparent is called after the main loop. // SetScreenTransparent panics if SetScreenTransparent is called after the main loop.
// //
// SetScreenTransparent does nothing on mobiles. // SetScreenTransparent does nothing on mobiles.
//
// SetScreenTransparent is concurrent-safe.
func SetScreenTransparent(transparent bool) { func SetScreenTransparent(transparent bool) {
uiDriver().SetScreenTransparent(transparent) uiDriver().SetScreenTransparent(transparent)
} }