mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-31 17:31:11 +02:00
glcd: uppercase status markers
Origin commit data
------------------
Branch: ni/coolstream
Commit: afbdad1635
Author: vanhofen <vanhofen@gmx.de>
Date: 2022-11-26 (Sat, 26 Nov 2022)
Origin message was:
------------------
- glcd: uppercase status markers
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
@@ -467,80 +467,88 @@ void cGLCD::Exec()
|
|||||||
ecmLocked = false;
|
ecmLocked = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
std::string smalltext;
|
||||||
|
|
||||||
if (t.glcd_icon_rec_x_position)
|
if (t.glcd_icon_rec_x_position)
|
||||||
{
|
{
|
||||||
|
smalltext = "REC";
|
||||||
if (recLocked) {
|
if (recLocked) {
|
||||||
drawText(t.glcd_icon_rec_x_position, t.glcd_icons_y_position,
|
drawText(t.glcd_icon_rec_x_position, t.glcd_icons_y_position,
|
||||||
bitmap->Width() - 1, SmalltextWidth, "rec", &font_smalltext, GLCD::cColor::Red,
|
bitmap->Width() - 1, SmalltextWidth, smalltext, &font_smalltext, GLCD::cColor::Red,
|
||||||
GLCD::cColor::Transparent, true, 0, 0);
|
GLCD::cColor::Transparent, true, 0, 0);
|
||||||
} else {
|
} else {
|
||||||
drawText(t.glcd_icon_rec_x_position, t.glcd_icons_y_position,
|
drawText(t.glcd_icon_rec_x_position, t.glcd_icons_y_position,
|
||||||
bitmap->Width() - 1, SmalltextWidth, "rec", &font_smalltext, GLCD::cColor::Gray,
|
bitmap->Width() - 1, SmalltextWidth, smalltext, &font_smalltext, GLCD::cColor::Gray,
|
||||||
GLCD::cColor::Transparent, true, 0, 0);
|
GLCD::cColor::Transparent, true, 0, 0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (t.glcd_icon_mute_x_position)
|
if (t.glcd_icon_mute_x_position)
|
||||||
{
|
{
|
||||||
|
smalltext = "MUTE";
|
||||||
if (muteLocked) {
|
if (muteLocked) {
|
||||||
drawText(t.glcd_icon_mute_x_position, t.glcd_icons_y_position,
|
drawText(t.glcd_icon_mute_x_position, t.glcd_icons_y_position,
|
||||||
bitmap->Width() - 1, SmalltextWidth, "mute", &font_smalltext, GLCD::cColor::Green,
|
bitmap->Width() - 1, SmalltextWidth, smalltext, &font_smalltext, GLCD::cColor::Red,
|
||||||
GLCD::cColor::Transparent, true, 0, 0);
|
GLCD::cColor::Transparent, true, 0, 0);
|
||||||
} else {
|
} else {
|
||||||
drawText(t.glcd_icon_mute_x_position, t.glcd_icons_y_position,
|
drawText(t.glcd_icon_mute_x_position, t.glcd_icons_y_position,
|
||||||
bitmap->Width() - 1, SmalltextWidth, "mute", &font_smalltext, GLCD::cColor::Gray,
|
bitmap->Width() - 1, SmalltextWidth, smalltext, &font_smalltext, GLCD::cColor::Gray,
|
||||||
GLCD::cColor::Transparent, true, 0, 0);
|
GLCD::cColor::Transparent, true, 0, 0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (t.glcd_icon_ts_x_position)
|
if (t.glcd_icon_ts_x_position)
|
||||||
{
|
{
|
||||||
|
smalltext = "TS";
|
||||||
if (tsLocked) {
|
if (tsLocked) {
|
||||||
drawText(t.glcd_icon_ts_x_position, t.glcd_icons_y_position,
|
drawText(t.glcd_icon_ts_x_position, t.glcd_icons_y_position,
|
||||||
bitmap->Width() - 1, SmalltextWidth, "ts", &font_smalltext, GLCD::cColor::Red,
|
bitmap->Width() - 1, SmalltextWidth, smalltext, &font_smalltext, GLCD::cColor::Yellow,
|
||||||
GLCD::cColor::Transparent, true, 0, 0);
|
GLCD::cColor::Transparent, true, 0, 0);
|
||||||
} else {
|
} else {
|
||||||
drawText(t.glcd_icon_ts_x_position, t.glcd_icons_y_position,
|
drawText(t.glcd_icon_ts_x_position, t.glcd_icons_y_position,
|
||||||
bitmap->Width() - 1, SmalltextWidth, "ts", &font_smalltext, GLCD::cColor::Gray,
|
bitmap->Width() - 1, SmalltextWidth, smalltext, &font_smalltext, GLCD::cColor::Gray,
|
||||||
GLCD::cColor::Transparent, true, 0, 0);
|
GLCD::cColor::Transparent, true, 0, 0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (t.glcd_icon_ecm_x_position)
|
if (t.glcd_icon_ecm_x_position)
|
||||||
{
|
{
|
||||||
|
smalltext = "ECM";
|
||||||
if (ecmLocked) {
|
if (ecmLocked) {
|
||||||
drawText(t.glcd_icon_ecm_x_position, t.glcd_icons_y_position,
|
drawText(t.glcd_icon_ecm_x_position, t.glcd_icons_y_position,
|
||||||
bitmap->Width() - 1, SmalltextWidth, "ecm", &font_smalltext, GLCD::cColor::Green,
|
bitmap->Width() - 1, SmalltextWidth, smalltext, &font_smalltext, GLCD::cColor::Green,
|
||||||
GLCD::cColor::Transparent, true, 0, 0);
|
GLCD::cColor::Transparent, true, 0, 0);
|
||||||
} else {
|
} else {
|
||||||
drawText(t.glcd_icon_ecm_x_position, t.glcd_icons_y_position,
|
drawText(t.glcd_icon_ecm_x_position, t.glcd_icons_y_position,
|
||||||
bitmap->Width() - 1, SmalltextWidth, "ecm", &font_smalltext, GLCD::cColor::Gray,
|
bitmap->Width() - 1, SmalltextWidth, smalltext, &font_smalltext, GLCD::cColor::Gray,
|
||||||
GLCD::cColor::Transparent, true, 0, 0);
|
GLCD::cColor::Transparent, true, 0, 0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (t.glcd_icon_timer_x_position)
|
if (t.glcd_icon_timer_x_position)
|
||||||
{
|
{
|
||||||
|
smalltext = "TIMER";
|
||||||
if (timerLocked) {
|
if (timerLocked) {
|
||||||
drawText(t.glcd_icon_timer_x_position, t.glcd_icons_y_position,
|
drawText(t.glcd_icon_timer_x_position, t.glcd_icons_y_position,
|
||||||
bitmap->Width() - 1, SmalltextWidth, "timer", &font_smalltext, GLCD::cColor::Yellow,
|
bitmap->Width() - 1, SmalltextWidth, smalltext, &font_smalltext, GLCD::cColor::Yellow,
|
||||||
GLCD::cColor::Transparent, true, 0, 0);
|
GLCD::cColor::Transparent, true, 0, 0);
|
||||||
} else {
|
} else {
|
||||||
drawText(t.glcd_icon_timer_x_position, t.glcd_icons_y_position,
|
drawText(t.glcd_icon_timer_x_position, t.glcd_icons_y_position,
|
||||||
bitmap->Width() - 1, SmalltextWidth, "timer", &font_smalltext, GLCD::cColor::Gray,
|
bitmap->Width() - 1, SmalltextWidth, smalltext, &font_smalltext, GLCD::cColor::Gray,
|
||||||
GLCD::cColor::Transparent, true, 0, 0);
|
GLCD::cColor::Transparent, true, 0, 0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (t.glcd_icon_dd_x_position)
|
if (t.glcd_icon_dd_x_position)
|
||||||
{
|
{
|
||||||
|
smalltext = "DD";
|
||||||
if (ddLocked) {
|
if (ddLocked) {
|
||||||
drawText(t.glcd_icon_dd_x_position, t.glcd_icons_y_position,
|
drawText(t.glcd_icon_dd_x_position, t.glcd_icons_y_position,
|
||||||
bitmap->Width() - 1, SmalltextWidth, "dd", &font_smalltext, GLCD::cColor::Green,
|
bitmap->Width() - 1, SmalltextWidth, smalltext, &font_smalltext, GLCD::cColor::Green,
|
||||||
GLCD::cColor::Transparent, true, 0, 0);
|
GLCD::cColor::Transparent, true, 0, 0);
|
||||||
} else {
|
} else {
|
||||||
drawText(t.glcd_icon_dd_x_position, t.glcd_icons_y_position,
|
drawText(t.glcd_icon_dd_x_position, t.glcd_icons_y_position,
|
||||||
bitmap->Width() - 1, SmalltextWidth, "dd", &font_smalltext, GLCD::cColor::Gray,
|
bitmap->Width() - 1, SmalltextWidth, smalltext, &font_smalltext, GLCD::cColor::Gray,
|
||||||
GLCD::cColor::Transparent, true, 0, 0);
|
GLCD::cColor::Transparent, true, 0, 0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -548,23 +556,25 @@ void cGLCD::Exec()
|
|||||||
if (t.glcd_icon_txt_x_position)
|
if (t.glcd_icon_txt_x_position)
|
||||||
{
|
{
|
||||||
if (ismediaplayer) {
|
if (ismediaplayer) {
|
||||||
|
smalltext = "SUB";
|
||||||
if (subLocked) {
|
if (subLocked) {
|
||||||
drawText(t.glcd_icon_txt_x_position, t.glcd_icons_y_position,
|
drawText(t.glcd_icon_txt_x_position, t.glcd_icons_y_position,
|
||||||
bitmap->Width() - 1, SmalltextWidth, "sub", &font_smalltext, GLCD::cColor::Green,
|
bitmap->Width() - 1, SmalltextWidth, smalltext, &font_smalltext, GLCD::cColor::Green,
|
||||||
GLCD::cColor::Transparent, true, 0, 0);
|
GLCD::cColor::Transparent, true, 0, 0);
|
||||||
} else {
|
} else {
|
||||||
drawText(t.glcd_icon_txt_x_position, t.glcd_icons_y_position,
|
drawText(t.glcd_icon_txt_x_position, t.glcd_icons_y_position,
|
||||||
bitmap->Width() - 1, SmalltextWidth, "sub", &font_smalltext, GLCD::cColor::Gray,
|
bitmap->Width() - 1, SmalltextWidth, smalltext, &font_smalltext, GLCD::cColor::Gray,
|
||||||
GLCD::cColor::Transparent, true, 0, 0);
|
GLCD::cColor::Transparent, true, 0, 0);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
smalltext = "TXT";
|
||||||
if (txtLocked) {
|
if (txtLocked) {
|
||||||
drawText(t.glcd_icon_txt_x_position, t.glcd_icons_y_position,
|
drawText(t.glcd_icon_txt_x_position, t.glcd_icons_y_position,
|
||||||
bitmap->Width() - 1, SmalltextWidth, "txt", &font_smalltext, GLCD::cColor::Green,
|
bitmap->Width() - 1, SmalltextWidth, smalltext, &font_smalltext, GLCD::cColor::Green,
|
||||||
GLCD::cColor::Transparent, true, 0, 0);
|
GLCD::cColor::Transparent, true, 0, 0);
|
||||||
} else {
|
} else {
|
||||||
drawText(t.glcd_icon_txt_x_position, t.glcd_icons_y_position,
|
drawText(t.glcd_icon_txt_x_position, t.glcd_icons_y_position,
|
||||||
bitmap->Width() - 1, SmalltextWidth, "txt", &font_smalltext, GLCD::cColor::Gray,
|
bitmap->Width() - 1, SmalltextWidth, smalltext, &font_smalltext, GLCD::cColor::Gray,
|
||||||
GLCD::cColor::Transparent, true, 0, 0);
|
GLCD::cColor::Transparent, true, 0, 0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -572,13 +582,14 @@ void cGLCD::Exec()
|
|||||||
|
|
||||||
if (t.glcd_icon_cam_x_position)
|
if (t.glcd_icon_cam_x_position)
|
||||||
{
|
{
|
||||||
|
smalltext = "CAM";
|
||||||
if (camLocked) {
|
if (camLocked) {
|
||||||
drawText(t.glcd_icon_cam_x_position, t.glcd_icons_y_position,
|
drawText(t.glcd_icon_cam_x_position, t.glcd_icons_y_position,
|
||||||
bitmap->Width() - 1, SmalltextWidth, "cam", &font_smalltext, GLCD::cColor::Green,
|
bitmap->Width() - 1, SmalltextWidth, smalltext, &font_smalltext, GLCD::cColor::Green,
|
||||||
GLCD::cColor::Transparent, true, 0, 0);
|
GLCD::cColor::Transparent, true, 0, 0);
|
||||||
} else {
|
} else {
|
||||||
drawText(t.glcd_icon_cam_x_position, t.glcd_icons_y_position,
|
drawText(t.glcd_icon_cam_x_position, t.glcd_icons_y_position,
|
||||||
bitmap->Width() - 1, SmalltextWidth, "cam", &font_smalltext, GLCD::cColor::Gray,
|
bitmap->Width() - 1, SmalltextWidth, smalltext, &font_smalltext, GLCD::cColor::Gray,
|
||||||
GLCD::cColor::Transparent, true, 0, 0);
|
GLCD::cColor::Transparent, true, 0, 0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user