Fix the window coordinates so that you can resize.
This commit is contained in:
parent
d6c5a89251
commit
38159a5f84
3 changed files with 5 additions and 6 deletions
|
@ -31,10 +31,9 @@ namespace guecs {
|
|||
sprite = sp.sprite;
|
||||
}
|
||||
|
||||
void GrabSource::move(sf::Vector2i pos) {
|
||||
void GrabSource::move(sf::Vector2f pos) {
|
||||
if(sprite) {
|
||||
sprite->setPosition({
|
||||
float(pos.x), float(pos.y)});
|
||||
sprite->setPosition(pos);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue