diff options
author | kinddragon <kinddragon@users.sourceforge.net> | 2010-05-07 22:30:57 +0400 |
---|---|---|
committer | kinddragon <kinddragon@users.sourceforge.net> | 2010-05-07 22:30:57 +0400 |
commit | c9fdac8d20ffe1e82c9707ee1cc6e4478c0b1e33 (patch) | |
tree | ab6b3ff652d5e421f5bde42c16c2bea275fe90b6 /src/apps/mplayerc/PPageSubtitles.cpp | |
parent | 1948d33f7ce8f23bf7ce24048b1a8fa9b57eb7cc (diff) |
Video renderer's moved to static library
git-svn-id: https://mpc-hc.svn.sourceforge.net/svnroot/mpc-hc/branches/videorenderslib@1859 10f7b99b-c216-0410-bff0-8a66a9350fd8
Diffstat (limited to 'src/apps/mplayerc/PPageSubtitles.cpp')
-rw-r--r-- | src/apps/mplayerc/PPageSubtitles.cpp | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/src/apps/mplayerc/PPageSubtitles.cpp b/src/apps/mplayerc/PPageSubtitles.cpp index f62729ec4..d5db3c103 100644 --- a/src/apps/mplayerc/PPageSubtitles.cpp +++ b/src/apps/mplayerc/PPageSubtitles.cpp @@ -135,7 +135,7 @@ BOOL CPPageSubtitles::OnInitDialog() m_nHorPosCtrl.SetRange(-10,110);
m_nVerPos = s.nVerPos;
m_nVerPosCtrl.SetRange(110,-10);
- m_nSPCSize = s.nSPCSize;
+ m_nSPCSize = s.m_RenderersSettings.nSPCSize;
m_nSPCSizeCtrl.SetRange(0, 60);
m_spmaxres.AddString(_T("Desktop"));
m_spmaxres.AddString(_T("2560x1600"));
@@ -147,9 +147,9 @@ BOOL CPPageSubtitles::OnInitDialog() m_spmaxres.AddString(_T("640x480"));
m_spmaxres.AddString(_T("512x384"));
m_spmaxres.AddString(_T("384x288"));
- m_spmaxres.SetCurSel(TranslateResIn(s.nSPCMaxRes));
- m_fSPCPow2Tex = s.fSPCPow2Tex;
- m_fSPCAllowAnimationWhenBuffering = s.fSPCAllowAnimationWhenBuffering;
+ m_spmaxres.SetCurSel(TranslateResIn(s.m_RenderersSettings.nSPCMaxRes));
+ m_fSPCPow2Tex = s.m_RenderersSettings.fSPCPow2Tex;
+ m_fSPCAllowAnimationWhenBuffering = s.m_RenderersSettings.fSPCAllowAnimationWhenBuffering;
m_nSubDelayInterval = s.nSubDelayInterval;
UpdateData(FALSE);
@@ -169,20 +169,20 @@ BOOL CPPageSubtitles::OnApply() if(s.fOverridePlacement != !!m_fOverridePlacement
|| s.nHorPos != m_nHorPos
|| s.nVerPos != m_nVerPos
- || s.nSPCSize != m_nSPCSize
+ || s.m_RenderersSettings.nSPCSize != m_nSPCSize
|| s.nSubDelayInterval != m_nSubDelayInterval
- || s.nSPCMaxRes != TranslateResOut(m_spmaxres.GetCurSel())
- || s.fSPCPow2Tex != !!m_fSPCPow2Tex
- || s.fSPCAllowAnimationWhenBuffering != !!m_fSPCAllowAnimationWhenBuffering)
+ || s.m_RenderersSettings.nSPCMaxRes != TranslateResOut(m_spmaxres.GetCurSel())
+ || s.m_RenderersSettings.fSPCPow2Tex != !!m_fSPCPow2Tex
+ || s.m_RenderersSettings.fSPCAllowAnimationWhenBuffering != !!m_fSPCAllowAnimationWhenBuffering)
{
s.fOverridePlacement = !!m_fOverridePlacement;
s.nHorPos = m_nHorPos;
s.nVerPos = m_nVerPos;
- s.nSPCSize = m_nSPCSize;
+ s.m_RenderersSettings.nSPCSize = m_nSPCSize;
s.nSubDelayInterval = m_nSubDelayInterval;
- s.nSPCMaxRes = TranslateResOut(m_spmaxres.GetCurSel());
- s.fSPCPow2Tex = !!m_fSPCPow2Tex;
- s.fSPCAllowAnimationWhenBuffering = !!m_fSPCAllowAnimationWhenBuffering;
+ s.m_RenderersSettings.nSPCMaxRes = TranslateResOut(m_spmaxres.GetCurSel());
+ s.m_RenderersSettings.fSPCPow2Tex = !!m_fSPCPow2Tex;
+ s.m_RenderersSettings.fSPCAllowAnimationWhenBuffering = !!m_fSPCAllowAnimationWhenBuffering;
if(CMainFrame* pFrame = (CMainFrame*)GetParentFrame())
pFrame->UpdateSubtitle(true);
|