Update NationalFlagView.cpp

This commit is contained in:
xixu-me committed 2024-09-29 19:41:42 +08:00
1 parent 0219583920
commit d1da2b65b5
1 file changed
+1 -1
@@ -62,7 +62,7 @@ void CNationalFlagView::OnDraw(CDC *pDC) {
pDC->SetViewportExt(rect.Width(), -rect.Height());
pDC->SetViewportOrg(ROUND(rect.Width() / 2), ROUND(rect.Height() / 2));
rect.OffsetRect(ROUND(-rect.Width() / 2), ROUND(-rect.Height() / 2));
if (rect.Width() > ROUND(rect.Height() * 1.5))
if (rect.Width() > static_cast<int>(ROUND(rect.Height() * 1.5)))
DrawFlag(pDC, rect.CenterPoint(), rect.Height());
else
DrawFlag(pDC, rect.CenterPoint(), ROUND(rect.Width() / 1.5));