X-Git-Url: https://git.cweiske.de/enigma2.git/blobdiff_plain/6bc9f7451c182bc2044e90cf317231d1d3927ee4..334e49f88bb558bb2f07d47c77c7900074d5b7b8:/lib/gdi/gpixmap.cpp diff --git a/lib/gdi/gpixmap.cpp b/lib/gdi/gpixmap.cpp index aaffbaa7..3ebd9a02 100644 --- a/lib/gdi/gpixmap.cpp +++ b/lib/gdi/gpixmap.cpp @@ -310,7 +310,7 @@ void gPixmap::blit(const gPixmap &src, ePoint pos, const gRegion &clip, int flag // use duff's device here! while (width--) { - if (*src==0x01) + if (!(pal[*src]&0x80000000)) { src++; dst++; @@ -379,7 +379,7 @@ void gPixmap::line(const gRegion &clip, ePoint start, ePoint dst, gColor color) if (clip.rects.empty()) return; - __u32 col; + __u32 col = 0; if (surface->bpp == 8) { srf8 = (__u8*)surface->data; @@ -438,7 +438,7 @@ void gPixmap::line(const gRegion &clip, ePoint start, ePoint dst, gColor color) do { ++a; - if (a == clip.rects.size()) + if ((unsigned int)a == clip.rects.size()) a = 0; if (a == lasthit) {