From 1bfc2d4a694eed777de3b1a7d7432e77ee2fac02 Mon Sep 17 00:00:00 2001 From: Marten Richter Date: Mon, 10 Dec 2012 08:05:47 +0100 Subject: [PATCH] Clear subtitle patch by JTE --- vvideolivetv.cc | 4 ++-- vvideorec.cc | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/vvideolivetv.cc b/vvideolivetv.cc index aad1634..d3b6109 100644 --- a/vvideolivetv.cc +++ b/vvideolivetv.cc @@ -1219,8 +1219,8 @@ void VVideoLiveTV::clearOSDArea(UINT posX, UINT posY, UINT width, UINT height, c float scaley=576.f/((float) (region.frameheight+1)); r.x=floor(scalex*((float)r.x)); r.y=floor(scaley*((float)r.y)); - r.w=ceil(scalex*((float)r.w)); - r.h=ceil(scaley*((float)r.h)); + r.w=ceil(scalex*((float)r.w))+1.f; + r.h=ceil(scaley*((float)r.h))+1.f; rectangle(r, DrawStyle(0,0,0,0)); boxstack->update(this, &r); } diff --git a/vvideorec.cc b/vvideorec.cc index d5d2e08..d3520d9 100644 --- a/vvideorec.cc +++ b/vvideorec.cc @@ -1105,8 +1105,8 @@ void VVideoRec::clearOSDArea(UINT posX, UINT posY, UINT width, UINT height, cons float scaley=576.f/((float) (region.frameheight+1)); r.x=floor(scalex*((float)r.x)); r.y=floor(scaley*((float)r.y)); - r.w=ceil(scalex*((float)r.w)); - r.h=ceil(scaley*((float)r.h)); + r.w=ceil(scalex*((float)r.w))+1.f; + r.h=ceil(scaley*((float)r.h))+1.f; rectangle(r, transparent); boxstack->update(this, &r); -- 2.39.2