From 53686497b697feaad58a05a571c8039b2a7dbdcb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mart=C3=ADn=20Lucas=20Golini?= Date: Sun, 17 Nov 2013 02:07:17 -0300 Subject: [PATCH] Fixed a typo. Fixed cSprite::GetAABB. --- include/eepp/window/cengine.hpp | 2 +- src/eepp/graphics/csprite.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/eepp/window/cengine.hpp b/include/eepp/window/cengine.hpp index 7eedd5f4d..98baa19f4 100755 --- a/include/eepp/window/cengine.hpp +++ b/include/eepp/window/cengine.hpp @@ -110,7 +110,7 @@ class EE_API cEngine { ContextSettings CreateContextSettings( cIniFile * ini, std::string iniKeyName = "EEPP" ); /** Enabling Shared GL Context allows asynchronous OpenGL resource loading ( only if is supported by the backend, SDL 2 backend is the only one supported ). - ** If the cTextureLoader is threaded, will upload the texture un another thread to the GPU. So, it will not block the main rendering thread. + ** If the cTextureLoader is threaded, will upload the texture in another thread to the GPU. So, it will not block the main rendering thread. ** Shared GL Context is disabled by default. */ void EnableSharedGLContext(); diff --git a/src/eepp/graphics/csprite.cpp b/src/eepp/graphics/csprite.cpp index e87cc0234..703efeffe 100755 --- a/src/eepp/graphics/csprite.cpp +++ b/src/eepp/graphics/csprite.cpp @@ -293,7 +293,7 @@ eeAABB cSprite::GetAABB() { } else if ( mOrigin.OriginType == eeOriginPoint::OriginTopLeft ) { Center = mPos; } else { - Center += mPos; + Center = mPos + mOrigin; } TmpR.Scale( mScale, Center );