nglcd: new option for scroll text on/off added

Origin commit data
------------------
Branch: ni/coolstream
Commit: 457c7f95ce
Author: BPanther <bpanther_ts@hotmail.com>
Date: 2023-08-14 (Mon, 14 Aug 2023)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
BPanther
2023-08-14 22:59:47 +02:00
committed by vanhofen
parent 10ebb3df88
commit 672e693557

View File

@@ -48,7 +48,7 @@
#include "png.h"
#include "jpeglib.h"
#define ICONSEXT ".png"
#define ICONSEXT ".png"
static const char *kDefaultConfigFile = "/etc/graphlcd.conf";
static cGLCD *cglcd = NULL;
@@ -1227,8 +1227,16 @@ void cGLCD::Run(void)
{
Epg = info_CurrentNext.current_name;
EpgWidth = font_epg.Width(Epg);
doScrollEpg = EpgWidth > bitmap->Width();
scrollEpgForward = true;
if (g_settings.glcd_scroll)
{
doScrollEpg = EpgWidth > bitmap->Width();
scrollEpgForward = true;
}
else
{
doScrollEpg = false;
scrollEpgForward = false;
}
scrollEpgSkip = 0;
if (doScrollEpg)
{