diff options
author | Aleksoid <aleksoid@users.sourceforge.net> | 2010-02-26 02:20:01 +0300 |
---|---|---|
committer | Aleksoid <aleksoid@users.sourceforge.net> | 2010-02-26 02:20:01 +0300 |
commit | 9cd2adc8e48ce8ad068afaed9bb35beef10fd722 (patch) | |
tree | 1781ea55289ccbf84e635d9dc63dc8e58c58cdf9 /src/apps/mplayerc/PPageFullscreen.cpp | |
parent | 0c2afb13afba6a40f1a0a989545b8162d16a1298 (diff) |
Fix : Checking for duplicates in display modes
Patch by V0lt
git-svn-id: https://mpc-hc.svn.sourceforge.net/svnroot/mpc-hc/trunk@1700 10f7b99b-c216-0410-bff0-8a66a9350fd8
Diffstat (limited to 'src/apps/mplayerc/PPageFullscreen.cpp')
-rw-r--r-- | src/apps/mplayerc/PPageFullscreen.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/apps/mplayerc/PPageFullscreen.cpp b/src/apps/mplayerc/PPageFullscreen.cpp index 0e4bd0e63..fbee305df 100644 --- a/src/apps/mplayerc/PPageFullscreen.cpp +++ b/src/apps/mplayerc/PPageFullscreen.cpp @@ -280,6 +280,10 @@ void CPPageFullscreen::ModesUpdate() ModeExist = GetDispMode(i, dm, m_f_hmonitor);
if (!ModeExist) break;
if(dm.bpp <= 8) continue;
+ //skip doubles (check previous only)
+ if (j>0 && (dm.bpp == m_dms[j-1].bpp && dm.dmDisplayFlags == m_dms[j-1].dmDisplayFlags
+ && dm.freq == m_dms[j-1].freq && dm.fValid == m_dms[j-1].fValid
+ && dm.size == m_dms[j-1].size)) continue;
m_dms.Add(dm);
str.Format(_T("%dx%d %dbpp %d") + ResStr(IDS_HZ), dm.size.cx, dm.size.cy, dm.bpp, dm.freq);
if (dm.dmDisplayFlags == DM_INTERLACED) str+=_T(" ")+ ResStr(IDS_INTERLACED);
|