From 8c410fc0b33aeb580be4ebb4daddcd6ef9eae39b Mon Sep 17 00:00:00 2001 From: Thilo Graf Date: Wed, 19 Oct 2011 08:55:20 +0000 Subject: [PATCH] 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: https://github.com/neutrino-images/ni-neutrino/commit/7a94675d57d99df7462c317a464fe1991484fe3a Author: Thilo Graf 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 --- src/gui/filebrowser.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/gui/filebrowser.cpp b/src/gui/filebrowser.cpp index d002cc3e5..62adef83f 100644 --- a/src/gui/filebrowser.cpp +++ b/src/gui/filebrowser.cpp @@ -1251,6 +1251,8 @@ void CFileBrowser::paintItem(unsigned int pos) bgcolor = COL_MENUCONTENT_PLUS_0;//DARK; c_rad_small = 0; } + + frameBuffer->paintBoxRel(x,ypos, width- 15, fheight, bgcolor, c_rad_small); if( (liststart + pos) < filelist.size() ) { @@ -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;countpaintBoxRel(x+ width- 15,ypos, 15, sb, COL_MENUCONTENT_PLUS_1);