87 for (
int i = 1; i <
MaxTabs; i++)
100 static char buffer[1000];
102 const char *b = strchrnul(a,
'\t');
103 while (*b && Tab-- > 0) {
105 b = strchrnul(a,
'\t');
108 return (Tab <= 0) ? a : NULL;
109 unsigned int n = b - a;
110 if (n >=
sizeof(buffer))
111 n =
sizeof(buffer) - 1;
112 strncpy(buffer, a, n);
138 int p =
Pos(Current);
144 int p1 =
Pos(m->Position());
151 Mark(p1, Start, m->Position() ==
Current, ColorMark, ColorCurrent);
160 DrawRectangle(x, 0, x, Height() - 1, ColorMark);
161 const int d = Height() / (Current ? 3 : 9);
162 for (
int i = 0; i < d; i++) {
163 int h = Start ? i : Height() - 1 - i;
164 DrawRectangle(x - d + i, h, x + d - i, h, Current ? ColorCurrent : ColorMark);
219 if (strcmp(Skin->Name(), Name) == 0) {
220 isyslog(
"setting current skin to \"%s\"", Name);
228 isyslog(
"skin \"%s\" not available - using \"%s\" instead", Name,
current->Name());
230 esyslog(
"ERROR: no skin available");
237 dsyslog(
"cSkins::Message() called from background thread - ignored! (Use cSkins::QueueMessage() instead)");
280 dsyslog(
"cSkins::QueueMessage() called with mtStatus - ignored!");
293 dsyslog(
"cSkins::QueueMessage() called with empty message from main thread - ignored!");
299 dsyslog(
"cSkins::QueueMessage() called from main thread with Timeout = %d - ignored!", Timeout);
304 SkinQueuedMessages.
Add(m);
320 if (m->state == 0 && m->timeout == -1)
336 dsyslog(
"cSkins::ProcessQueuedMessages() called from background thread - ignored!");
353 if (msg->
state == 1) {
366 if (m && m->
state == 2) {
367 SkinQueuedMessages.
Del(m);