mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-09-02 02:11:11 +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
This commit is contained in:
@@ -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);
|
||||||
|
Reference in New Issue
Block a user