commit de acabar la jornada laboral
This commit is contained in:
@@ -145,7 +145,7 @@ void Notifier::update()
|
||||
}
|
||||
}
|
||||
|
||||
notifications_[i].sprite->setPos(notifications_[i].rect);
|
||||
notifications_[i].sprite->setPosition(notifications_[i].rect);
|
||||
}
|
||||
|
||||
clearFinishedNotifications();
|
||||
@@ -278,7 +278,7 @@ void Notifier::showText(std::string text1, std::string text2, int icon, std::str
|
||||
if (has_icons_ && icon >= 0 && num_texts == 2)
|
||||
{
|
||||
auto sp = std::make_unique<Sprite>(icon_texture_, (SDL_Rect){0, 0, icon_size, icon_size});
|
||||
sp->setPos({padding_in_h, padding_in_v, icon_size, icon_size});
|
||||
sp->setPosition({padding_in_h, padding_in_v, icon_size, icon_size});
|
||||
sp->setSpriteClip({icon_size * (icon % 10), icon_size * (icon / 10), icon_size, icon_size});
|
||||
sp->render();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user