mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-29 00:11:08 +02:00
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:
@@ -1252,6 +1252,8 @@ void CFileBrowser::paintItem(unsigned int pos)
|
||||
c_rad_small = 0;
|
||||
}
|
||||
|
||||
frameBuffer->paintBoxRel(x,ypos, width- 15, fheight, bgcolor, c_rad_small);
|
||||
|
||||
if( (liststart + pos) < filelist.size() )
|
||||
{
|
||||
actual_file = &filelist[liststart+pos];
|
||||
@@ -1273,8 +1275,6 @@ void CFileBrowser::paintItem(unsigned int pos)
|
||||
}
|
||||
colwidth1 = width - 35 - colwidth2 - colwidth3 - 10;
|
||||
|
||||
frameBuffer->paintBoxRel(x,ypos, width- 15, fheight, bgcolor, c_rad_small);
|
||||
|
||||
if ( actual_file->Name.length() > 0 )
|
||||
{
|
||||
if (liststart+pos==selected)
|
||||
@@ -1512,6 +1512,7 @@ void CFileBrowser::paint()
|
||||
for(unsigned int count=0;count<listmaxshow;count++)
|
||||
paintItem(count);
|
||||
|
||||
//scrollbar
|
||||
int ypos = y+ theight;
|
||||
int sb = fheight* listmaxshow;
|
||||
frameBuffer->paintBoxRel(x+ width- 15,ypos, 15, sb, COL_MENUCONTENT_PLUS_1);
|
||||
|
Reference in New Issue
Block a user