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


Origin commit data
------------------
Branch: ni/coolstream
Commit: 1e7abca08e
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2010-09-12 (Sun, 12 Sep 2010)



------------------
This commit was generated by Migit
This commit is contained in:
Stefan Seyfried
2010-09-12 13:52:05 +00:00
parent c5cb5ff2e0
commit 2e68f34ae2

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;
}