mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-28 07:51:19 +02:00
At least keychooser display was broken with overloaded paint, revert and use double calcSize for now
git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-beta@2007 e54a6e83-5905-42d5-8d5c-058d10e6a962
This commit is contained in:
@@ -479,7 +479,11 @@ int CMenuWidget::exec(CMenuTarget* parent, const std::string &)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
paint(true);
|
if(savescreen) {
|
||||||
|
calcSize();
|
||||||
|
saveScreen();
|
||||||
|
}
|
||||||
|
paint();
|
||||||
int retval = menu_return::RETURN_REPAINT;
|
int retval = menu_return::RETURN_REPAINT;
|
||||||
uint64_t timeoutEnd = CRCInput::calcTimeoutEnd(g_settings.timing[SNeutrinoSettings::TIMING_MENU] == 0 ? 0xFFFF : g_settings.timing[SNeutrinoSettings::TIMING_MENU]);
|
uint64_t timeoutEnd = CRCInput::calcTimeoutEnd(g_settings.timing[SNeutrinoSettings::TIMING_MENU] == 0 ? 0xFFFF : g_settings.timing[SNeutrinoSettings::TIMING_MENU]);
|
||||||
|
|
||||||
@@ -814,12 +818,13 @@ void CMenuWidget::calcSize()
|
|||||||
setMenuPos(width - sb_width);
|
setMenuPos(width - sb_width);
|
||||||
}
|
}
|
||||||
|
|
||||||
void CMenuWidget::paint(bool save)
|
void CMenuWidget::paint()
|
||||||
{
|
{
|
||||||
calcSize();
|
calcSize();
|
||||||
|
#if 0
|
||||||
if(save)
|
if(save)
|
||||||
saveScreen();
|
saveScreen();
|
||||||
|
#endif
|
||||||
CVFD::getInstance()->setMode(CVFD::MODE_MENU_UTF8, nameString.c_str());
|
CVFD::getInstance()->setMode(CVFD::MODE_MENU_UTF8, nameString.c_str());
|
||||||
|
|
||||||
//paint shadow and backround
|
//paint shadow and backround
|
||||||
|
@@ -452,7 +452,7 @@ class CMenuWidget : public CMenuTarget
|
|||||||
int getItemId(CMenuItem* menuItem);
|
int getItemId(CMenuItem* menuItem);
|
||||||
int getItemsCount(){return items.size();};
|
int getItemsCount(){return items.size();};
|
||||||
CMenuItem* getItem(const uint& item_id);
|
CMenuItem* getItem(const uint& item_id);
|
||||||
virtual void paint(bool save = false);
|
virtual void paint();
|
||||||
virtual void hide();
|
virtual void hide();
|
||||||
virtual int exec(CMenuTarget* parent, const std::string & actionKey);
|
virtual int exec(CMenuTarget* parent, const std::string & actionKey);
|
||||||
virtual std::string getName();
|
virtual std::string getName();
|
||||||
|
Reference in New Issue
Block a user