medfall

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

commit 91da819676cd5e2ca39277a146436d2a9a281eff
parent 1ba5fcb223da1007a32325663332692aa24c321a
Author: Michael Savage <mikejsavage@gmail.com>
Date:   Sat Jan 21 23:03:55 +0200

MSVC warnings

Diffstat:
launcher/main.cc | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/launcher/main.cc b/launcher/main.cc @@ -515,7 +515,7 @@ int main() { Updater * updater = SCOPED_ACQUIRE( locked_updater ); ImGui::SetNextWindowPos( ImVec2() ); - ImGui::SetNextWindowSize( ImVec2( WIDTH, HEIGHT ) ); + ImGui::SetNextWindowSize( ImVec2( float( WIDTH ), float( HEIGHT ) ) ); ImGui::Begin( "", NULL, 0 | ImGuiWindowFlags_NoTitleBar | ImGuiWindowFlags_NoResize @@ -593,7 +593,7 @@ int main() { all_done = false; } } - double frac = double( total_downloaded ) / double( updater->update_size ); + float frac = float( double( total_downloaded ) / double( updater->update_size ) ); static double smooth_download_speed; static bool download_speed_set = false;