From bb70c756568af9a76a38309a3454d8a6d7931fcc Mon Sep 17 00:00:00 2001 From: Johns Date: Sat, 23 Nov 2013 16:51:30 +0100 Subject: [PATCH] Fix bug: -DOSD_DEBUG uses old (deleted) variable. --- ChangeLog | 1 + softhddevice.cpp | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index f7679d2..549a380 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,6 +1,7 @@ User johns Date: + Fix bug: -DOSD_DEBUG uses old (deleted) variable. Fix bug: Option softhddevice.BlackPicture has no effect. User Dr. Seltsam diff --git a/softhddevice.cpp b/softhddevice.cpp index 76d924d..a6fcf26 100644 --- a/softhddevice.cpp +++ b/softhddevice.cpp @@ -2548,8 +2548,8 @@ cRect cSoftHdDevice::CanScaleVideo(const cRect & rect, void cSoftHdDevice::ScaleVideo(const cRect & rect) { #ifdef OSD_DEBUG - dsyslog("[softhddev]%s: %dx%d%+d%+d\n", __FUNCTION__, VidWinRect.Width(), - VidWinRect.Height(), VidWinRect.X(), VidWinRect.Y()); + dsyslog("[softhddev]%s: %dx%d%+d%+d\n", __FUNCTION__, rect.Width(), + rect.Height(), rect.X(), rect.Y()); #endif ::ScaleVideo(rect.X(), rect.Y(), rect.Width(), rect.Height()); }