neutrino filebrowser: fix small paint error during first paint

see also: http://www.dbox2world.net/board293-coolstream-hd1/board314-coolstream-development/p134807-anzeige-bug/#post134807

git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-beta@1759 e54a6e83-5905-42d5-8d5c-058d10e6a962


Origin commit data
------------------
Branch: ni/coolstream
Commit: 7a94675d57
Author: Thilo Graf <dbt@novatux.de>
Date: 2011-10-19 (Wed, 19 Oct 2011)

Origin message was:
------------------
*neutrino filebrowser: fix small paint error during first paint

see also: http://www.dbox2world.net/board293-coolstream-hd1/board314-coolstream-development/p134807-anzeige-bug/#post134807

git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-beta@1759 e54a6e83-5905-42d5-8d5c-058d10e6a962


------------------
This commit was generated by Migit
This commit is contained in:
2011-10-19 08:55:20 +00:00
parent 7c5b2933f8
commit 8c410fc0b3

View File

@@ -1251,6 +1251,8 @@ void CFileBrowser::paintItem(unsigned int pos)
bgcolor = COL_MENUCONTENT_PLUS_0;//DARK; bgcolor = COL_MENUCONTENT_PLUS_0;//DARK;
c_rad_small = 0; c_rad_small = 0;
} }
frameBuffer->paintBoxRel(x,ypos, width- 15, fheight, bgcolor, c_rad_small);
if( (liststart + pos) < filelist.size() ) if( (liststart + pos) < filelist.size() )
{ {
@@ -1273,8 +1275,6 @@ void CFileBrowser::paintItem(unsigned int pos)
} }
colwidth1 = width - 35 - colwidth2 - colwidth3 - 10; colwidth1 = width - 35 - colwidth2 - colwidth3 - 10;
frameBuffer->paintBoxRel(x,ypos, width- 15, fheight, bgcolor, c_rad_small);
if ( actual_file->Name.length() > 0 ) if ( actual_file->Name.length() > 0 )
{ {
if (liststart+pos==selected) if (liststart+pos==selected)
@@ -1512,6 +1512,7 @@ void CFileBrowser::paint()
for(unsigned int count=0;count<listmaxshow;count++) for(unsigned int count=0;count<listmaxshow;count++)
paintItem(count); paintItem(count);
//scrollbar
int ypos = y+ theight; int ypos = y+ theight;
int sb = fheight* listmaxshow; int sb = fheight* listmaxshow;
frameBuffer->paintBoxRel(x+ width- 15,ypos, 15, sb, COL_MENUCONTENT_PLUS_1); frameBuffer->paintBoxRel(x+ width- 15,ypos, 15, sb, COL_MENUCONTENT_PLUS_1);