mirror of https://github.com/odrling/Aegisub
parent
e7e1469af7
commit
729349b314
|
@ -5,8 +5,6 @@
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "setup.h"
|
|
||||||
#if USE_DIRECTSHOW == 1
|
|
||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
#ifdef __WXDEBUG__
|
#ifdef __WXDEBUG__
|
||||||
#undef __WXDEBUG__
|
#undef __WXDEBUG__
|
||||||
|
@ -564,6 +562,3 @@ HRESULT CreateVideoSink(IBaseFilter **pVS) {
|
||||||
*pVS = vs;
|
*pVS = vs;
|
||||||
return hr;
|
return hr;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
|
@ -199,6 +199,9 @@ void VideoDisplay::Render() {
|
||||||
///////////////
|
///////////////
|
||||||
// Update size
|
// Update size
|
||||||
void VideoDisplay::UpdateSize() {
|
void VideoDisplay::UpdateSize() {
|
||||||
|
// Loaded?
|
||||||
|
if (VideoContext::Get()->IsLoaded()) return;
|
||||||
|
|
||||||
// Get size
|
// Get size
|
||||||
if (arType == 0) w = VideoContext::Get()->GetWidth() * zoomValue;
|
if (arType == 0) w = VideoContext::Get()->GetWidth() * zoomValue;
|
||||||
else w = VideoContext::Get()->GetHeight() * zoomValue * arValue;
|
else w = VideoContext::Get()->GetHeight() * zoomValue * arValue;
|
||||||
|
|
Loading…
Reference in New Issue