File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 20
20
21
21
#include < cstddef>
22
22
#include < cstdint>
23
+ #include < numeric>
23
24
#include < string>
24
25
#include < utility>
25
26
#include < vector>
26
- #include < numeric>
27
27
28
28
#include " agg_image.h"
29
29
#include " cursor.h"
@@ -88,7 +88,7 @@ namespace
88
88
const int32_t textOffsetY = offsetY + ( resolutionItemHeight - resolutionText.height () + textOffsetYCorrection ) / 2 ;
89
89
90
90
resolutionText.draw ( textOffsetX, textOffsetY, fheroes2::Display::instance () );
91
-
91
+
92
92
const int32_t gcd = std::gcd ( resolution.width , resolution.height );
93
93
const auto aspectRatioString = std::to_string ( resolution.width / gcd ) + " : " + std::to_string ( resolution.height / gcd );
94
94
const int32_t aspectRatioWidth = fheroes2::Text ( aspectRatioString, fontType ).width ();
You can’t perform that action at this time.
0 commit comments