mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-26 23:13:00 +02:00
messagebox: fix some scrolling issues
git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-beta@1757 e54a6e83-5905-42d5-8d5c-058d10e6a962
Origin commit data
------------------
Branch: ni/coolstream
Commit: 1878e72cd3
Author: gixxpunk <thomas.harfmann@gmail.com>
Date: 2011-10-14 (Fri, 14 Oct 2011)
Origin message was:
------------------
- messagebox: fix some scrolling issues
git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-beta@1757 e54a6e83-5905-42d5-8d5c-058d10e6a962
------------------
This commit was generated by Migit
This commit is contained in:
@@ -97,7 +97,7 @@ void CMessageBox::paintButtons()
|
||||
uint8_t color;
|
||||
fb_pixel_t bgcolor;
|
||||
|
||||
m_window->paintBoxRel(0, m_height - (m_fheight << 1), m_width, (m_fheight << 1), (CFBWindow::color_t)COL_MENUCONTENT_PLUS_0, RADIUS_LARGE, CORNER_BOTTOM);
|
||||
m_window->paintBoxRel(0, m_height - (m_fheight << 1) - RADIUS_LARGE, m_width, (m_fheight << 1) + RADIUS_LARGE, (CFBWindow::color_t)COL_MENUCONTENT_PLUS_0, RADIUS_LARGE, CORNER_BOTTOM);
|
||||
|
||||
//irgendwann alle vergleichen - aber cancel ist sicher der l<>ngste
|
||||
int MaxButtonTextWidth = g_Font[SNeutrinoSettings::FONT_TYPE_INFOBAR_SMALL]->getRenderWidth(g_Locale->getText(LOCALE_MESSAGEBOX_CANCEL), true); // UTF-8
|
||||
@@ -236,9 +236,15 @@ int CMessageBox::exec(int timeout)
|
||||
else if (has_scrollbar() && ((msg == CRCInput::RC_up) || (msg == CRCInput::RC_down)))
|
||||
{
|
||||
if (msg == CRCInput::RC_up)
|
||||
{
|
||||
scroll_up();
|
||||
paintButtons();
|
||||
}
|
||||
else
|
||||
{
|
||||
scroll_down();
|
||||
paintButtons();
|
||||
}
|
||||
}
|
||||
else if(msg==CRCInput::RC_left)
|
||||
{
|
||||
|
Reference in New Issue
Block a user