Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mpc-hc/mpc-hc.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/apps/mplayerc/PPageFileInfoDetails.cpp')
-rw-r--r--src/apps/mplayerc/PPageFileInfoDetails.cpp23
1 files changed, 2 insertions, 21 deletions
diff --git a/src/apps/mplayerc/PPageFileInfoDetails.cpp b/src/apps/mplayerc/PPageFileInfoDetails.cpp
index 35e5f19fd..9b339daeb 100644
--- a/src/apps/mplayerc/PPageFileInfoDetails.cpp
+++ b/src/apps/mplayerc/PPageFileInfoDetails.cpp
@@ -69,20 +69,6 @@ void CPPageFileInfoDetails::DoDataExchange(CDataExchange* pDX)
BEGIN_MESSAGE_MAP(CPPageFileInfoDetails, CPropertyPage)
END_MESSAGE_MAP()
-inline int LNKO(int a, int b)
-{
- if(a == 0 || b == 0)
- return(1);
-
- while(a != b)
- {
- if(a < b) b -= a;
- else if(a > b) a -= b;
- }
-
- return(a);
-}
-
// CPPageFileInfoDetails message handlers
static bool GetProperty(IFilterGraph* pFG, LPCOLESTR propName, VARIANT* vt)
@@ -244,13 +230,8 @@ BOOL CPPageFileInfoDetails::OnInitDialog()
{
m_res.Format(_T("%d x %d"), wh.cx, wh.cy);
- int lnko = 0;
- do
- {
- lnko = LNKO(arxy.cx, arxy.cy);
- if(lnko > 1) arxy.cx /= lnko, arxy.cy /= lnko;
- }
- while(lnko > 1);
+ int lnko = LNKO(arxy.cx, arxy.cy);
+ if(lnko > 1) arxy.cx /= lnko, arxy.cy /= lnko;
if(arxy.cx > 0 && arxy.cy > 0 && arxy.cx*wh.cy != arxy.cy*wh.cx)
{