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:
authorUnderground78 <underground78@users.sourceforge.net>2012-09-25 00:39:36 +0400
committerUnderground78 <underground78@users.sourceforge.net>2012-09-25 18:55:01 +0400
commitfcd7eb578c7e63ca04338a8c31dd82b7f6a19d51 (patch)
treef0ffe5322b1c6b52bc85faca5b37f4107149dca6 /src/SubPic/DX7SubPic.cpp
parentd119e7cf7bc038b144c35c8a2c067e308ebabd69 (diff)
DX7SubPic: Properly handle the max texture size.
This commit fixes some cases where subtitles weren't renderered using the internal subtitles renderer with VM7-based renderers.
Diffstat (limited to 'src/SubPic/DX7SubPic.cpp')
-rw-r--r--src/SubPic/DX7SubPic.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/SubPic/DX7SubPic.cpp b/src/SubPic/DX7SubPic.cpp
index 06d327b59..f1a9de408 100644
--- a/src/SubPic/DX7SubPic.cpp
+++ b/src/SubPic/DX7SubPic.cpp
@@ -243,6 +243,13 @@ STDMETHODIMP CDX7SubPicAllocator::ChangeDevice(IUnknown* pDev)
return __super::ChangeDevice(pDev);
}
+STDMETHODIMP CDX7SubPicAllocator::SetMaxTextureSize(SIZE MaxTextureSize)
+{
+ m_maxsize = MaxTextureSize;
+ SetCurSize(MaxTextureSize);
+ return S_OK;
+}
+
// ISubPicAllocatorImpl
bool CDX7SubPicAllocator::Alloc(bool fStatic, ISubPic** ppSubPic)