diff options
author | Underground78 <underground78@users.sourceforge.net> | 2012-09-25 00:39:36 +0400 |
---|---|---|
committer | Underground78 <underground78@users.sourceforge.net> | 2012-09-25 18:55:01 +0400 |
commit | fcd7eb578c7e63ca04338a8c31dd82b7f6a19d51 (patch) | |
tree | f0ffe5322b1c6b52bc85faca5b37f4107149dca6 /src/SubPic/DX7SubPic.cpp | |
parent | d119e7cf7bc038b144c35c8a2c067e308ebabd69 (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.cpp | 7 |
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)
|