mirror of
https://github.com/VDR4Arch/vdr.git
synced 2023-10-10 13:36:52 +02:00
Fixed ignoring unused "none" color entries in XPM files (there was an unnecessary log entry)
This commit is contained in:
parent
51b02cade3
commit
2dc9309d2d
4
osd.c
4
osd.c
@ -4,7 +4,7 @@
|
|||||||
* See the main source file 'vdr.c' for copyright information and
|
* See the main source file 'vdr.c' for copyright information and
|
||||||
* how to reach the author.
|
* how to reach the author.
|
||||||
*
|
*
|
||||||
* $Id: osd.c 1.51 2004/06/05 13:20:19 kls Exp $
|
* $Id: osd.c 1.52 2004/06/05 16:52:51 kls Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "osd.h"
|
#include "osd.h"
|
||||||
@ -397,7 +397,7 @@ void cBitmap::DrawText(int x, int y, const char *s, tColor ColorFg, tColor Color
|
|||||||
x -= x0;
|
x -= x0;
|
||||||
y -= y0;
|
y -= y0;
|
||||||
tIndex fg = Index(ColorFg);
|
tIndex fg = Index(ColorFg);
|
||||||
tIndex bg = Index(ColorBg);
|
tIndex bg = (ColorBg != clrTransparent) ? Index(ColorBg) : 0;
|
||||||
while (s && *s) {
|
while (s && *s) {
|
||||||
const cFont::tCharData *CharData = Font->CharData(*s++);
|
const cFont::tCharData *CharData = Font->CharData(*s++);
|
||||||
if (limit && int(x + CharData->width) > limit)
|
if (limit && int(x + CharData->width) > limit)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user