mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-26 03:38:55 +01:00
examples/windowsize: Rename -screentransparent -> -transparent
This commit is contained in:
parent
42cd923418
commit
69300f0c4e
@ -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,
|
||||||
|
Loading…
Reference in New Issue
Block a user