From: Marten Richter Date: Mon, 10 Dec 2012 07:05:47 +0000 (+0100) Subject: Clear subtitle patch by JTE X-Git-Tag: 0-4-0^2~12^2~3 X-Git-Url: https://git.vomp.tv/gitweb/?a=commitdiff_plain;h=1bfc2d4a694eed777de3b1a7d7432e77ee2fac02;p=vompclient.git Clear subtitle patch by JTE --- 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);