for (unsigned int i=0; i<clip.rects.size(); ++i)
{
eRect area=eRect(pos, src.size());
-
- if (!(flag & blitAlphaTest)) // HACK !!
- area&=clip.rects[i];
-
+ area&=clip.rects[i];
area&=eRect(ePoint(0, 0), size());
+
if ((area.width()<0) || (area.height()<0))
continue;
// use duff's device here!
while (width--)
{
- if (*src==0x01)
+ if (!(pal[*src]&0x80000000))
{
src++;
dst++;
if (clip.rects.empty())
return;
- __u32 col;
+ __u32 col = 0;
if (surface->bpp == 8)
{
srf8 = (__u8*)surface->data;
do
{
++a;
- if (a == clip.rects.size())
+ if ((unsigned int)a == clip.rects.size())
a = 0;
if (a == lasthit)
{