Possible fixes.

Originally committed to SVN as r867.
This commit is contained in:
Rodrigo Braz Monteiro 2007-01-21 23:16:03 +00:00
parent e7e1469af7
commit 729349b314
2 changed files with 3 additions and 5 deletions

View File

@ -5,8 +5,6 @@
*
*/
#include "setup.h"
#if USE_DIRECTSHOW == 1
#include <windows.h>
#ifdef __WXDEBUG__
#undef __WXDEBUG__
@ -564,6 +562,3 @@ HRESULT CreateVideoSink(IBaseFilter **pVS) {
*pVS = vs;
return hr;
}
#endif

View File

@ -199,6 +199,9 @@ void VideoDisplay::Render() {
///////////////
// Update size
void VideoDisplay::UpdateSize() {
// Loaded?
if (VideoContext::Get()->IsLoaded()) return;
// Get size
if (arType == 0) w = VideoContext::Get()->GetWidth() * zoomValue;
else w = VideoContext::Get()->GetHeight() * zoomValue * arValue;