mirror of
https://github.com/Heretek-AI/GDevelop.git
synced 2026-07-24 02:55:41 -04:00
Corrected bad placement of TextObject during runtime.
git-svn-id: svn://localhost@39 8062f311-0dae-4547-b526-b8ab9ac864a5
This commit is contained in:
@@ -126,8 +126,8 @@ bool TextObject::Draw( sf::RenderWindow& window )
|
||||
//Don't draw anything if hidden
|
||||
if ( hidden ) return true;
|
||||
|
||||
text.SetX( GetX()-text.GetRect().GetSize().x/2 );
|
||||
text.SetY( GetY()-text.GetRect().GetSize().y/2 );
|
||||
text.SetX( GetX()+text.GetRect().GetSize().x/2 );
|
||||
text.SetY( GetY()+text.GetRect().GetSize().y/2 );
|
||||
text.SetColor(sf::Color(colorR, colorG, colorB, opacity));
|
||||
text.SetOrigin(text.GetRect().GetSize().x/2, text.GetRect().GetSize().y/2);
|
||||
text.SetRotation(-angle);
|
||||
|
||||
Reference in New Issue
Block a user