Fixed minor issue in Qt and wxWidgets samples.

git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1139 4e206d99-4929-0410-ac5d-dfc041789085
This commit is contained in:
laurentgom 2009-06-13 22:16:08 +00:00
parent b86c4627ab
commit b602a3f8dc
2 changed files with 3 additions and 5 deletions

View File

@ -54,8 +54,7 @@ private :
// Stick the sprite to the mouse cursor
if (Event.Type == sf::Event::MouseMoved)
{
mySprite.SetX(Event.MouseMove.X);
mySprite.SetY(Event.MouseMove.Y);
mySprite.SetPosition(ConvertCoords(Event.MouseMove.X, Event.MouseMove.Y));
}
}

View File

@ -55,8 +55,7 @@ private :
void OnMouseMove(wxMouseEvent& Event)
{
// Make the sprite follow the mouse cursor
mySprite.SetX(Event.GetX());
mySprite.SetY(Event.GetY());
mySprite.SetPosition(ConvertCoords(Event.GetX(), Event.GetY()));
}
////////////////////////////////////////////////////////////