examples/rotate: Update the resolution

This commit is contained in:
Hajime Hoshi 2020-11-05 00:37:24 +09:00
parent 552fbb7ed9
commit 61a8f2c69c

View File

@ -28,8 +28,8 @@ import (
) )
const ( const (
screenWidth = 320 screenWidth = 640
screenHeight = 240 screenHeight = 480
) )
var ( var (
@ -84,7 +84,7 @@ func main() {
} }
gophersImage = ebiten.NewImageFromImage(img) gophersImage = ebiten.NewImageFromImage(img)
ebiten.SetWindowSize(screenWidth*2, screenHeight*2) ebiten.SetWindowSize(screenWidth, screenHeight)
ebiten.SetWindowTitle("Rotate (Ebiten Demo)") ebiten.SetWindowTitle("Rotate (Ebiten Demo)")
if err := ebiten.RunGame(&Game{}); err != nil { if err := ebiten.RunGame(&Game{}); err != nil {
log.Fatal(err) log.Fatal(err)