lcd4linux: prepare for some more Samsung SPF types

Origin commit data
------------------
Branch: ni/coolstream
Commit: ef1c0352f5
Author: vanhofen <vanhofen@gmx.de>
Date: 2019-01-03 (Thu, 03 Jan 2019)

Origin message was:
------------------
- lcd4linux: prepare for some more Samsung SPF types

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

------------------
This commit was generated by Migit
This commit is contained in:
vanhofen
2019-01-03 21:55:33 +01:00
parent cd6dc53650
commit ef9c612400
3 changed files with 25 additions and 9 deletions

View File

@@ -197,10 +197,12 @@ int CLCD4l::GetMaxBrightness()
switch (g_settings.lcd4l_display_type)
{
case SAMSUNG:
case SAMSUNG800x480:
case SAMSUNG800x600:
case SAMSUNG1024x600:
max_brightness = 10;
break;
case PEARL:
case PEARL320x240:
default:
max_brightness = 7;
break;
@@ -736,10 +738,19 @@ void CLCD4l::ParseInfo(uint64_t parseID, bool newID, bool firstRun)
switch (g_settings.lcd4l_display_type)
{
case SAMSUNG:
case SAMSUNG800x480:
//DisplayType = "Samsung800x480_";
DisplayType = "Samsung_";
break;
case PEARL:
case SAMSUNG800x600:
//DisplayType = "Samsung800x600_";
DisplayType = "Samsung_";
break;
case SAMSUNG1024x600:
//DisplayType = "Samsung1024x600_";
DisplayType = "Samsung_";
break;
case PEARL320x240:
default:
DisplayType = "Pearl_";
break;
@@ -1006,6 +1017,8 @@ bool CLCD4l::WriteFile(const char *file, std::string content, bool convert)
strReplace(content, "Ä", "\xc4\0");
strReplace(content, "Ö", "\xd6\0");
strReplace(content, "Ü", "\xdc\0");
if (g_settings.lcd4l_display_type == PEARL320x240)
strReplace(content, "ß", "\xe2\0");
strReplace(content, "Ą", "\x41\0");
strReplace(content, "ą", "\x61\0");
@@ -1026,7 +1039,6 @@ bool CLCD4l::WriteFile(const char *file, std::string content, bool convert)
strReplace(content, "Ź", "\x5a\0");
strReplace(content, "ż", "\x7a\0");
if (g_settings.lcd4l_display_type == PEARL) strReplace(content, "ß", "\xe2\0");
strReplace(content, "é", "e");
}