mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-28 07:51:19 +02:00
draw glcd icons only, if x-pos > 0
This commit is contained in:
@@ -467,96 +467,106 @@ void cGLCD::Exec()
|
||||
ecmLocked = false;
|
||||
}
|
||||
|
||||
if (recLocked) {
|
||||
drawText(t.glcd_icon_rec_x_position, t.glcd_icons_y_position,
|
||||
bitmap->Width() - 1, SmalltextWidth, "rec", &font_smalltext, GLCD::cColor::Red,
|
||||
GLCD::cColor::Transparent, true, 0, 0);
|
||||
} else {
|
||||
drawText(t.glcd_icon_rec_x_position, t.glcd_icons_y_position,
|
||||
bitmap->Width() - 1, SmalltextWidth, "rec", &font_smalltext, GLCD::cColor::Gray,
|
||||
GLCD::cColor::Transparent, true, 0, 0);
|
||||
}
|
||||
|
||||
if (muteLocked) {
|
||||
drawText(t.glcd_icon_mute_x_position, t.glcd_icons_y_position,
|
||||
bitmap->Width() - 1, SmalltextWidth, "mute", &font_smalltext, GLCD::cColor::Green,
|
||||
GLCD::cColor::Transparent, true, 0, 0);
|
||||
} else {
|
||||
drawText(t.glcd_icon_mute_x_position, t.glcd_icons_y_position,
|
||||
bitmap->Width() - 1, SmalltextWidth, "mute", &font_smalltext, GLCD::cColor::Gray,
|
||||
GLCD::cColor::Transparent, true, 0, 0);
|
||||
}
|
||||
|
||||
if (tsLocked) {
|
||||
drawText(t.glcd_icon_ts_x_position, t.glcd_icons_y_position,
|
||||
bitmap->Width() - 1, SmalltextWidth, "ts", &font_smalltext, GLCD::cColor::Red,
|
||||
GLCD::cColor::Transparent, true, 0, 0);
|
||||
} else {
|
||||
drawText(t.glcd_icon_ts_x_position, t.glcd_icons_y_position,
|
||||
bitmap->Width() - 1, SmalltextWidth, "ts", &font_smalltext, GLCD::cColor::Gray,
|
||||
GLCD::cColor::Transparent, true, 0, 0);
|
||||
}
|
||||
#if 0
|
||||
if (ecmLocked) {
|
||||
drawText(t.glcd_icon_ecm_x_position, t.glcd_icons_y_position,
|
||||
bitmap->Width() - 1, SmalltextWidth, "ecm", &font_smalltext, GLCD::cColor::Green,
|
||||
GLCD::cColor::Transparent, true, 0, 0);
|
||||
} else {
|
||||
drawText(t.glcd_icon_ecm_x_position, t.glcd_icons_y_position,
|
||||
bitmap->Width() - 1, SmalltextWidth, "ecm", &font_smalltext, GLCD::cColor::Gray,
|
||||
GLCD::cColor::Transparent, true, 0, 0);
|
||||
}
|
||||
#endif
|
||||
if (timerLocked) {
|
||||
drawText(t.glcd_icon_timer_x_position, t.glcd_icons_y_position,
|
||||
bitmap->Width() - 1, SmalltextWidth, "timer", &font_smalltext, GLCD::cColor::Green,
|
||||
GLCD::cColor::Transparent, true, 0, 0);
|
||||
} else {
|
||||
drawText(t.glcd_icon_timer_x_position, t.glcd_icons_y_position,
|
||||
bitmap->Width() - 1, SmalltextWidth, "timer", &font_smalltext, GLCD::cColor::Gray,
|
||||
GLCD::cColor::Transparent, true, 0, 0);
|
||||
}
|
||||
|
||||
if (ddLocked) {
|
||||
drawText(t.glcd_icon_dd_x_position, t.glcd_icons_y_position,
|
||||
bitmap->Width() - 1, SmalltextWidth, "dd", &font_smalltext, GLCD::cColor::Green,
|
||||
GLCD::cColor::Transparent, true, 0, 0);
|
||||
} else {
|
||||
drawText(t.glcd_icon_dd_x_position, t.glcd_icons_y_position,
|
||||
bitmap->Width() - 1, SmalltextWidth, "dd", &font_smalltext, GLCD::cColor::Gray,
|
||||
GLCD::cColor::Transparent, true, 0, 0);
|
||||
}
|
||||
|
||||
if (ismediaplayer) {
|
||||
if (subLocked) {
|
||||
drawText(t.glcd_icon_txt_x_position, t.glcd_icons_y_position,
|
||||
bitmap->Width() - 1, SmalltextWidth, "sub", &font_smalltext, GLCD::cColor::Green,
|
||||
if (t.glcd_icon_rec_x_position)
|
||||
{
|
||||
if (recLocked) {
|
||||
drawText(t.glcd_icon_rec_x_position, t.glcd_icons_y_position,
|
||||
bitmap->Width() - 1, SmalltextWidth, "rec", &font_smalltext, GLCD::cColor::Red,
|
||||
GLCD::cColor::Transparent, true, 0, 0);
|
||||
} else {
|
||||
drawText(t.glcd_icon_txt_x_position, t.glcd_icons_y_position,
|
||||
bitmap->Width() - 1, SmalltextWidth, "sub", &font_smalltext, GLCD::cColor::Gray,
|
||||
GLCD::cColor::Transparent, true, 0, 0);
|
||||
}
|
||||
} else {
|
||||
if (txtLocked) {
|
||||
drawText(t.glcd_icon_txt_x_position, t.glcd_icons_y_position,
|
||||
bitmap->Width() - 1, SmalltextWidth, "rt", &font_smalltext, GLCD::cColor::Green,
|
||||
GLCD::cColor::Transparent, true, 0, 0);
|
||||
} else {
|
||||
drawText(t.glcd_icon_txt_x_position, t.glcd_icons_y_position,
|
||||
bitmap->Width() - 1, SmalltextWidth, "rt", &font_smalltext, GLCD::cColor::Gray,
|
||||
drawText(t.glcd_icon_rec_x_position, t.glcd_icons_y_position,
|
||||
bitmap->Width() - 1, SmalltextWidth, "rec", &font_smalltext, GLCD::cColor::Gray,
|
||||
GLCD::cColor::Transparent, true, 0, 0);
|
||||
}
|
||||
}
|
||||
|
||||
if (camLocked) {
|
||||
drawText(t.glcd_icon_cam_x_position, t.glcd_icons_y_position,
|
||||
bitmap->Width() - 1, SmalltextWidth, "cam", &font_smalltext, GLCD::cColor::Green,
|
||||
GLCD::cColor::Transparent, true, 0, 0);
|
||||
} else {
|
||||
drawText(t.glcd_icon_cam_x_position, t.glcd_icons_y_position,
|
||||
bitmap->Width() - 1, SmalltextWidth, "cam", &font_smalltext, GLCD::cColor::Gray,
|
||||
GLCD::cColor::Transparent, true, 0, 0);
|
||||
if (t.glcd_icon_mute_x_position)
|
||||
{
|
||||
if (muteLocked) {
|
||||
drawText(t.glcd_icon_mute_x_position, t.glcd_icons_y_position,
|
||||
bitmap->Width() - 1, SmalltextWidth, "mute", &font_smalltext, GLCD::cColor::Green,
|
||||
GLCD::cColor::Transparent, true, 0, 0);
|
||||
} else {
|
||||
drawText(t.glcd_icon_mute_x_position, t.glcd_icons_y_position,
|
||||
bitmap->Width() - 1, SmalltextWidth, "mute", &font_smalltext, GLCD::cColor::Gray,
|
||||
GLCD::cColor::Transparent, true, 0, 0);
|
||||
}
|
||||
}
|
||||
|
||||
if (t.glcd_icon_ts_x_position)
|
||||
{
|
||||
if (tsLocked) {
|
||||
drawText(t.glcd_icon_ts_x_position, t.glcd_icons_y_position,
|
||||
bitmap->Width() - 1, SmalltextWidth, "ts", &font_smalltext, GLCD::cColor::Red,
|
||||
GLCD::cColor::Transparent, true, 0, 0);
|
||||
} else {
|
||||
drawText(t.glcd_icon_ts_x_position, t.glcd_icons_y_position,
|
||||
bitmap->Width() - 1, SmalltextWidth, "ts", &font_smalltext, GLCD::cColor::Gray,
|
||||
GLCD::cColor::Transparent, true, 0, 0);
|
||||
}
|
||||
}
|
||||
if (t.glcd_icon_timer_x_position)
|
||||
{
|
||||
if (timerLocked) {
|
||||
drawText(t.glcd_icon_timer_x_position, t.glcd_icons_y_position,
|
||||
bitmap->Width() - 1, SmalltextWidth, "timer", &font_smalltext, GLCD::cColor::Yellow,
|
||||
GLCD::cColor::Transparent, true, 0, 0);
|
||||
} else {
|
||||
drawText(t.glcd_icon_timer_x_position, t.glcd_icons_y_position,
|
||||
bitmap->Width() - 1, SmalltextWidth, "timer", &font_smalltext, GLCD::cColor::Gray,
|
||||
GLCD::cColor::Transparent, true, 0, 0);
|
||||
}
|
||||
}
|
||||
|
||||
if (t.glcd_icon_dd_x_position)
|
||||
{
|
||||
if (ddLocked) {
|
||||
drawText(t.glcd_icon_dd_x_position, t.glcd_icons_y_position,
|
||||
bitmap->Width() - 1, SmalltextWidth, "dd", &font_smalltext, GLCD::cColor::Green,
|
||||
GLCD::cColor::Transparent, true, 0, 0);
|
||||
} else {
|
||||
drawText(t.glcd_icon_dd_x_position, t.glcd_icons_y_position,
|
||||
bitmap->Width() - 1, SmalltextWidth, "dd", &font_smalltext, GLCD::cColor::Gray,
|
||||
GLCD::cColor::Transparent, true, 0, 0);
|
||||
}
|
||||
}
|
||||
|
||||
if (t.glcd_icon_txt_x_position)
|
||||
{
|
||||
if (ismediaplayer) {
|
||||
if (subLocked) {
|
||||
drawText(t.glcd_icon_txt_x_position, t.glcd_icons_y_position,
|
||||
bitmap->Width() - 1, SmalltextWidth, "sub", &font_smalltext, GLCD::cColor::Green,
|
||||
GLCD::cColor::Transparent, true, 0, 0);
|
||||
} else {
|
||||
drawText(t.glcd_icon_txt_x_position, t.glcd_icons_y_position,
|
||||
bitmap->Width() - 1, SmalltextWidth, "sub", &font_smalltext, GLCD::cColor::Gray,
|
||||
GLCD::cColor::Transparent, true, 0, 0);
|
||||
}
|
||||
} else {
|
||||
if (txtLocked) {
|
||||
drawText(t.glcd_icon_txt_x_position, t.glcd_icons_y_position,
|
||||
bitmap->Width() - 1, SmalltextWidth, "txt", &font_smalltext, GLCD::cColor::Green,
|
||||
GLCD::cColor::Transparent, true, 0, 0);
|
||||
} else {
|
||||
drawText(t.glcd_icon_txt_x_position, t.glcd_icons_y_position,
|
||||
bitmap->Width() - 1, SmalltextWidth, "txt", &font_smalltext, GLCD::cColor::Gray,
|
||||
GLCD::cColor::Transparent, true, 0, 0);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (t.glcd_icon_cam_x_position)
|
||||
{
|
||||
if (camLocked) {
|
||||
drawText(t.glcd_icon_cam_x_position, t.glcd_icons_y_position,
|
||||
bitmap->Width() - 1, SmalltextWidth, "cam", &font_smalltext, GLCD::cColor::Green,
|
||||
GLCD::cColor::Transparent, true, 0, 0);
|
||||
} else {
|
||||
drawText(t.glcd_icon_cam_x_position, t.glcd_icons_y_position,
|
||||
bitmap->Width() - 1, SmalltextWidth, "cam", &font_smalltext, GLCD::cColor::Gray,
|
||||
GLCD::cColor::Transparent, true, 0, 0);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user