From 503cdef76383607799731d0d0c4e8dfde02fec1e Mon Sep 17 00:00:00 2001 From: scop Date: Thu, 21 Apr 2005 21:40:06 +0000 Subject: Disable bitmap transfer optimization for now, http://article.gmane.org/gmane.linux.vdr/21572 (Luca Olivetti). --- dxr3osd_subpicture.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'dxr3osd_subpicture.c') diff --git a/dxr3osd_subpicture.c b/dxr3osd_subpicture.c index b96b0c2..258d53a 100644 --- a/dxr3osd_subpicture.c +++ b/dxr3osd_subpicture.c @@ -203,6 +203,9 @@ void cDxr3SubpictureOsd::Flush() here. It doesn't hurt too much. */ +// http://article.gmane.org/gmane.linux.vdr/21572 +//#define optimize_bitmap_transfer +#ifdef optimize_bitmap_transfer while ((x1 > 0 || x2 < Bitmap->Width() - 1) && ((x2 - x1) & 7) != 7) { @@ -242,6 +245,12 @@ void cDxr3SubpictureOsd::Flush() x1--; } } +#else + x1 = 0; + y1 = 0; + x2 = Bitmap->Width() - 1; + y2 = Bitmap->Height() - 1; +#endif Spu->SetPalette(i + 1, Palette, Bitmap); int origx = Left() + Bitmap->X0(); -- cgit v1.2.3