From fa7f83028ddfa68984b1a3e94972c743d1cbd43e Mon Sep 17 00:00:00 2001 From: gixxpunk Date: Thu, 12 Oct 2017 12:26:02 +0200 Subject: [PATCH] dvbsubtitle: fix copy/paste error and only show debug if there is something to clear Signed-off-by: J. Krieg Signed-off-by: Thilo Graf Origin commit data ------------------ Commit: https://github.com/neutrino-images/ni-neutrino/commit/3edc365eab89133b386c796e9b9adae82cc764b7 Author: gixxpunk Date: 2017-10-12 (Thu, 12 Oct 2017) Origin message was: ------------------ - dvbsubtitle: fix copy/paste error and only show debug if there is something to clear Signed-off-by: J. Krieg Signed-off-by: Thilo Graf --- lib/libdvbsub/dvbsubtitle.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/libdvbsub/dvbsubtitle.cpp b/lib/libdvbsub/dvbsubtitle.cpp index bd0d091a2..43020b0dd 100644 --- a/lib/libdvbsub/dvbsubtitle.cpp +++ b/lib/libdvbsub/dvbsubtitle.cpp @@ -242,14 +242,14 @@ void cDvbSubtitleConverter::Pause(bool pause) void cDvbSubtitleConverter::Clear(void) { - dbgconverter("cDvbSubtitleConverter::Clear: x=% d y= %d, w= %d, h= %d\n", min_x, min_y, max_x-min_x, max_y-min_y); if(running && (max_x-min_x > 0) && (max_y-min_y > 0)) { + dbgconverter("cDvbSubtitleConverter::Clear: x=% d y= %d, w= %d, h= %d\n", min_x, min_y, max_x-min_x, max_y-min_y); CFrameBuffer::getInstance()->paintBackgroundBoxRel (min_x, min_y, max_x-min_x, max_y-min_y); /* reset area to clear */ min_x = screen_w; min_y = screen_h; max_x = screen_x; - max_y = screen_h; + max_y = screen_y; } }