Source/Gorgon/Widgets/Generator.cpp

branch
4.x-dev
changeset 1461
6bbecfcb304e
parent 1460
d0d48718575e
child 1464
fc28c4139fcc
--- a/Source/Gorgon/Widgets/Generator.cpp	Wed Oct 07 16:46:11 2020 +0300
+++ b/Source/Gorgon/Widgets/Generator.cpp	Wed Oct 07 20:33:51 2020 +0300
@@ -128,7 +128,7 @@
         lettervsize = regularrenderer->GetLetterHeight();
         asciivsize = regularrenderer->GetLetterHeight(true);
         
-        int totalh = regularrenderer->GetLineGap();
+        int totalh = (int)regularrenderer->GetLineGap();
         
         Spacing = (int)std::round((float)totalh / (2 * Density / 3));
         Focus.Spacing = std::max(1, Spacing / 2);
@@ -780,7 +780,7 @@
                 }, CGI::SolidFill<>(color));
             }
             else {
-                CGI::DrawLines(*icon, tick, 1.2*ShapeBorder, CGI::SolidFill<>(color));
+                CGI::DrawLines(*icon, tick, 1.2f*ShapeBorder, CGI::SolidFill<>(color));
             }
             icon->Prepare();
             

mercurial