1
0
mirror of synced 2025-02-09 07:09:42 +01:00

Make cast to float explicit

This commit is contained in:
Stepland 2020-02-17 09:14:56 +01:00
parent 8bea6a4226
commit 97a75cfce4

View File

@ -50,7 +50,7 @@ void MusicSelect::Screen::select_chart(sf::RenderWindow& window) {
break;
case sf::Event::Resized:
// update the view to the new size of the window
window.setView(sf::View({0, 0, event.size.width, event.size.height}));
window.setView(sf::View({0, 0, static_cast<float>(event.size.width), static_cast<float>(event.size.height)}));
resources.preferences.screen.height = event.size.height;
resources.preferences.screen.width = event.size.width;
ribbon.setPosition(