examples/windowsize: Rename -screentransparent -> -transparent

This commit is contained in:
Hajime Hoshi 2021-09-19 17:42:03 +09:00
parent 42cd923418
commit 69300f0c4e

View File

@ -41,7 +41,7 @@ var (
flagFullscreen = flag.Bool("fullscreen", false, "fullscreen") flagFullscreen = flag.Bool("fullscreen", false, "fullscreen")
flagResizable = flag.Bool("resizable", false, "make the window resizable") flagResizable = flag.Bool("resizable", false, "make the window resizable")
flagWindowPosition = flag.String("windowposition", "", "window position (e.g., 100,200)") flagWindowPosition = flag.String("windowposition", "", "window position (e.g., 100,200)")
flagScreenTransparent = flag.Bool("screentransparent", false, "screen transparent") flagTransparent = flag.Bool("transparent", false, "screen transparent")
flagAutoAdjusting = flag.Bool("autoadjusting", false, "make the game screen auto-adjusting") flagAutoAdjusting = flag.Bool("autoadjusting", false, "make the game screen auto-adjusting")
flagFloating = flag.Bool("floating", false, "make the window floating") flagFloating = flag.Bool("floating", false, "make the window floating")
flagMaximize = flag.Bool("maximize", false, "maximize the window") flagMaximize = flag.Bool("maximize", false, "maximize the window")
@ -392,7 +392,7 @@ func main() {
if x, y, ok := parseWindowPosition(); ok { if x, y, ok := parseWindowPosition(); ok {
ebiten.SetWindowPosition(x, y) ebiten.SetWindowPosition(x, y)
} }
ebiten.SetScreenTransparent(*flagScreenTransparent) ebiten.SetScreenTransparent(*flagTransparent)
g := &game{ g := &game{
width: initScreenWidth, width: initScreenWidth,