aboutsummaryrefslogtreecommitdiff
path: root/lib/gdi/gpixmap.cpp
diff options
context:
space:
mode:
authorAndreas Oberritter <obi@opendreambox.org>2006-01-18 00:49:50 +0000
committerAndreas Oberritter <obi@opendreambox.org>2006-01-18 00:49:50 +0000
commitf557ecfc2e3ad520c3e53ebb94f55d0fb7895990 (patch)
treec5345d9f41c13026ca812fa341510a239861aacf /lib/gdi/gpixmap.cpp
parent627b8a76459a646b1590ddb18e9fe95a18763338 (diff)
downloadenigma2-f557ecfc2e3ad520c3e53ebb94f55d0fb7895990.tar.gz
enigma2-f557ecfc2e3ad520c3e53ebb94f55d0fb7895990.zip
fixed compiler warnings
Diffstat (limited to 'lib/gdi/gpixmap.cpp')
-rw-r--r--lib/gdi/gpixmap.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/gdi/gpixmap.cpp b/lib/gdi/gpixmap.cpp
index aaffbaa7..e44ee0fa 100644
--- a/lib/gdi/gpixmap.cpp
+++ b/lib/gdi/gpixmap.cpp
@@ -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)
{