Fix the window coordinates so that you can resize.

This commit is contained in:
Zed A. Shaw 2025-06-11 00:56:41 -04:00
parent d6c5a89251
commit 38159a5f84
3 changed files with 5 additions and 6 deletions

View file

@ -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);
}
}
}