Skip to content

Commit

Permalink
minor update of Cocoa-SFML example
Browse files Browse the repository at this point in the history
  • Loading branch information
mantognini committed Jan 7, 2012
1 parent 2720532 commit adca580
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tools/xcode/example/Cocoa/CocoaAppDelegate.mm
Expand Up @@ -46,7 +46,9 @@
logo.SetSmooth(true);

sprite.SetTexture(logo, true);
sprite.SetOrigin(sprite.GetSize() / 2.f);
sf::FloatRect rect = sprite.GetLocalBounds();
sf::Vector2f size(rect.Width, rect.Height);
sprite.SetOrigin(size / 2.f);
sprite.Scale(0.3, 0.3);

unsigned int ww = renderWindow.GetWidth();
Expand Down

0 comments on commit adca580

Please sign in to comment.