mirror of
https://github.com/SFML/SFML.git
synced 2024-11-28 22:31:09 +08:00
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:
parent
b86c4627ab
commit
b602a3f8dc
@ -54,8 +54,7 @@ private :
|
|||||||
// Stick the sprite to the mouse cursor
|
// Stick the sprite to the mouse cursor
|
||||||
if (Event.Type == sf::Event::MouseMoved)
|
if (Event.Type == sf::Event::MouseMoved)
|
||||||
{
|
{
|
||||||
mySprite.SetX(Event.MouseMove.X);
|
mySprite.SetPosition(ConvertCoords(Event.MouseMove.X, Event.MouseMove.Y));
|
||||||
mySprite.SetY(Event.MouseMove.Y);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -55,8 +55,7 @@ private :
|
|||||||
void OnMouseMove(wxMouseEvent& Event)
|
void OnMouseMove(wxMouseEvent& Event)
|
||||||
{
|
{
|
||||||
// Make the sprite follow the mouse cursor
|
// Make the sprite follow the mouse cursor
|
||||||
mySprite.SetX(Event.GetX());
|
mySprite.SetPosition(ConvertCoords(Event.GetX(), Event.GetY()));
|
||||||
mySprite.SetY(Event.GetY());
|
|
||||||
}
|
}
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////
|
||||||
|
Loading…
Reference in New Issue
Block a user