examples/blend: shrink the window for small displays

This commit is contained in:
Hajime Hoshi 2023-03-14 22:20:21 +09:00
parent 3951df05c8
commit e4aace6c40

View File

@ -182,7 +182,8 @@ func drawCenteredText(screen *ebiten.Image, cx, cy float64, s string) {
} }
func main() { func main() {
ebiten.SetWindowSize(screenWidth, screenHeight) ebiten.SetWindowSize(640, 640)
ebiten.SetWindowResizingMode(ebiten.WindowResizingModeEnabled)
ebiten.SetWindowTitle("Blend modes (Ebitengine Demo)") ebiten.SetWindowTitle("Blend modes (Ebitengine Demo)")
game, err := NewGame() game, err := NewGame()