mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-09-03 02:41:21 +02:00
filebrowser: fix hourglass object remove order
Avoids holes on screen.
This commit is contained in:
@@ -294,7 +294,7 @@ CFile *CFileBrowser::getSelectedFile()
|
|||||||
|
|
||||||
void CFileBrowser::ChangeDir(const std::string & filename, int selection)
|
void CFileBrowser::ChangeDir(const std::string & filename, int selection)
|
||||||
{
|
{
|
||||||
CHourGlass hg(x + width/2, y + height/3);
|
CHourGlass hg(x + width - width/3, y + height/3);
|
||||||
hg.setXPos(hg.getXPos()-hg.getWidth()/2);
|
hg.setXPos(hg.getXPos()-hg.getWidth()/2);
|
||||||
hg.paint(false);
|
hg.paint(false);
|
||||||
std::string newpath;
|
std::string newpath;
|
||||||
@@ -353,10 +353,10 @@ void CFileBrowser::ChangeDir(const std::string & filename, int selection)
|
|||||||
if ((selection != -1) && (selection < (int)filelist.size()))
|
if ((selection != -1) && (selection < (int)filelist.size()))
|
||||||
selected = selection;
|
selected = selection;
|
||||||
|
|
||||||
hg.kill(COL_MENUCONTENT_PLUS_0);
|
|
||||||
paintHead();
|
paintHead();
|
||||||
paint();
|
paint();
|
||||||
paintFoot();
|
paintFoot();
|
||||||
|
hg.kill(COL_MENUCONTENT_PLUS_0);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool CFileBrowser::readDir(const std::string & dirname, CFileList* flist)
|
bool CFileBrowser::readDir(const std::string & dirname, CFileList* flist)
|
||||||
|
Reference in New Issue
Block a user