From 61a8f2c69c115ccc2d0dbbe980d31c33d7f3e195 Mon Sep 17 00:00:00 2001 From: Hajime Hoshi Date: Thu, 5 Nov 2020 00:37:24 +0900 Subject: [PATCH] examples/rotate: Update the resolution --- examples/rotate/main.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/rotate/main.go b/examples/rotate/main.go index af9164d4e..8e8a083ac 100644 --- a/examples/rotate/main.go +++ b/examples/rotate/main.go @@ -28,8 +28,8 @@ import ( ) const ( - screenWidth = 320 - screenHeight = 240 + screenWidth = 640 + screenHeight = 480 ) var ( @@ -84,7 +84,7 @@ func main() { } gophersImage = ebiten.NewImageFromImage(img) - ebiten.SetWindowSize(screenWidth*2, screenHeight*2) + ebiten.SetWindowSize(screenWidth, screenHeight) ebiten.SetWindowTitle("Rotate (Ebiten Demo)") if err := ebiten.RunGame(&Game{}); err != nil { log.Fatal(err)