Skip to content

Commit

Permalink
nglcd: changed last commit
Browse files Browse the repository at this point in the history
  • Loading branch information
BPanther committed Aug 13, 2023
1 parent ade9812 commit 0869afb
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions src/driver/nglcd.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -785,8 +785,8 @@ void nGLCD::Run(void)
Channel = g_Locale->getText(LOCALE_GLCD_VOLUME);
ChannelWidth = font_channel.Width(Channel);
doScrollChannel = ChannelWidth > bitmap->Width() - 4;
scrollChannelSkip = 0;
scrollChannelForward = true;
scrollChannelSkip = 0;
if (doScrollChannel)
{
scrollChannelOffset = bitmap->Width() / g_settings.glcd_scroll_speed;
Expand All @@ -809,8 +809,8 @@ void nGLCD::Run(void)
Epg = stagingEpg;
EpgWidth = font_epg.Width(Epg);
doScrollEpg = EpgWidth > bitmap->Width() - 4;
scrollEpgSkip = 0;
scrollEpgForward = true;
scrollEpgSkip = 0;
if (doScrollEpg)
{
scrollEpgOffset = bitmap->Width() / g_settings.glcd_scroll_speed;
Expand All @@ -824,8 +824,8 @@ void nGLCD::Run(void)
Channel = stagingChannel;
ChannelWidth = font_channel.Width(Channel);
doScrollChannel = ChannelWidth > bitmap->Width() - 4;
scrollChannelSkip = 0;
scrollChannelForward = true;
scrollChannelSkip = 0;
if (doScrollChannel)
{
scrollChannelOffset = bitmap->Width() / g_settings.glcd_scroll_speed;
Expand Down Expand Up @@ -906,14 +906,17 @@ void nGLCD::Run(void)
#if 0 // FIXME: scroll problem, high load
doScrollEpg = EpgWidth > bitmap->Width() - 4;
scrollEpgForward = true;
#else
doScrollEpg = false;
scrollEpgForward = false;
#endif
scrollEpgSkip = 0;
if (doScrollEpg)
{
scrollEpgOffset = bitmap->Width() / g_settings.glcd_scroll_speed;
EpgWidth += scrollEpgOffset;
}
else
#endif
scrollEpgOffset = 0;
}

Expand Down

0 comments on commit 0869afb

Please sign in to comment.