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:
authorXhmikosR <xhmikosr@users.sourceforge.net>2010-02-07 00:04:26 +0300
committerXhmikosR <xhmikosr@users.sourceforge.net>2010-02-07 00:04:26 +0300
commit309f96fed5c95ee871d6e7be62f592711ae49882 (patch)
treea21889c5c3b1318261c0074ce82265ff89253d68 /src/subtitles/RTS.h
parent4fadb8a565fa3bfbdb209966afd8e5ca94786a7c (diff)
-when caption is hidden, window is without a thick frame now, child view responsible for NC_HITTEST
-preliminary support for subtitle language order (similar to Haali Media Splitter) -same for audio language order -added menu option to override embedded style for subtitles Patch by foxx1337 git-svn-id: https://mpc-hc.svn.sourceforge.net/svnroot/mpc-hc/trunk@1622 10f7b99b-c216-0410-bff0-8a66a9350fd8
Diffstat (limited to 'src/subtitles/RTS.h')
-rw-r--r--src/subtitles/RTS.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/subtitles/RTS.h b/src/subtitles/RTS.h
index 8f9976493..be50a19be 100644
--- a/src/subtitles/RTS.h
+++ b/src/subtitles/RTS.h
@@ -221,6 +221,9 @@ class CRenderedTextSubtitle : public CSimpleTextSubtitle, public ISubPicProvider
int m_ktype, m_kstart, m_kend;
int m_nPolygon;
int m_polygonBaselineOffset;
+ STSStyle *m_pStyleOverride; // the app can decide to use this style instead of a built-in one
+ bool m_doOverrideStyle;
+
void ParseEffect(CSubtitle* sub, CString str);
void ParseString(CSubtitle* sub, CStringW str, STSStyle& style);
@@ -236,11 +239,13 @@ protected:
virtual void OnChanged();
public:
- CRenderedTextSubtitle(CCritSec* pLock);
+ CRenderedTextSubtitle(CCritSec* pLock, STSStyle *styleOverride = NULL, bool doOverride = false);
virtual ~CRenderedTextSubtitle();
virtual void Copy(CSimpleTextSubtitle& sts);
virtual void Empty();
+ // call to signal this RTS to ignore any of the styles and apply the given override style
+ void SetOverride(bool doOverride = true, STSStyle *styleOverride = NULL) { m_doOverrideStyle = doOverride; if(styleOverride != NULL) m_pStyleOverride = styleOverride; }
public:
bool Init(CSize size, CRect vidrect); // will call Deinit()