Update NationalFlagView.cpp
This commit is contained in:
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));
|
||||
|
||||
Reference in new issue
Block a user