From 63abfb2c1350261198571910c1c1911a7c00fcec Mon Sep 17 00:00:00 2001 From: Hajime Hoshi Date: Sun, 8 Dec 2013 22:14:52 +0900 Subject: [PATCH] Bug fix: the initial state of a ebiten --- example/game.go | 2 +- ui/cocoa/texture_factory_events.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/example/game.go b/example/game.go index 4cfba159e..9b6d248db 100644 --- a/example/game.go +++ b/example/game.go @@ -82,7 +82,7 @@ func (game *Game) Update() { game.drawInfo.textureGeo.Translate(-textureWidth/2, -textureHeight/2) game.drawInfo.textureGeo.Rotate(game.drawInfo.textureAngle) - game.drawInfo.textureGeo.Translate(textureWidth, textureHeight) + game.drawInfo.textureGeo.Translate(textureWidth/2, textureHeight/2) game.drawInfo.textureGeo.Translate(float64(game.textureX), float64(game.textureY)) diff --git a/ui/cocoa/texture_factory_events.go b/ui/cocoa/texture_factory_events.go index 203ed1974..34faa7b4d 100644 --- a/ui/cocoa/texture_factory_events.go +++ b/ui/cocoa/texture_factory_events.go @@ -5,7 +5,7 @@ import ( ) type textureFactoryEvents struct { - textureCreated chan graphics.TextureCreatedEvent + textureCreated chan graphics.TextureCreatedEvent renderTargetCreated chan graphics.RenderTargetCreatedEvent }