tuxtxt: fix crash on double height / PIP

on coolstream, it did not crash, but the TOP sidebar was broken
with PIP/double height.

git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@759 e54a6e83-5905-42d5-8d5c-058d10e6a962
This commit is contained in:
seife
2010-09-12 13:52:05 +00:00
parent 06bad717c4
commit 1e7abca08e

View File

@@ -5576,12 +5576,13 @@ void CopyBB2FB()
unsigned char *topdst = dst;
screenwidth = ( TV43STARTX ) * 4;
size_t width = ex * sizeof(fb_pixel_t) - screenwidth;
topsrc += screenwidth;
topdst += screenwidth;
for (i=0; i < 24*fontheight; i++)
{
memcpy(topdst, topsrc,ex-screenwidth);
memcpy(topdst, topsrc, width);
topdst += fix_screeninfo.line_length;
topsrc += fix_screeninfo.line_length;
}