[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Pingus-CVS] rev 2346 - trunk/src
From: |
Ingo Ruhnke |
Subject: |
[Pingus-CVS] rev 2346 - trunk/src |
Date: |
Fri, 25 Jun 2004 00:26:58 +0200 |
Author: grumbel
Date: 2004-06-25 00:26:58 +0200 (Fri, 25 Jun 2004)
New Revision: 2346
Modified:
trunk/src/blitter.cxx
Log:
- another blitter fix
Modified: trunk/src/blitter.cxx
===================================================================
--- trunk/src/blitter.cxx 2004-06-24 19:17:12 UTC (rev 2345)
+++ trunk/src/blitter.cxx 2004-06-24 22:26:58 UTC (rev 2346)
@@ -384,11 +384,12 @@
for (int x = start_x; x < end_x; ++x)
{
float a = color.get_alpha()/255.0f;
+ cl_uint8* mytptr = tptr; // FIXME: No idea why I have to use
mytptr[0..2] and can't use *tptr
- *tptr++ = Math::mid(0, int(*tptr + a * color.get_alpha()),
255);
- *tptr++ = Math::mid(0, int((1.0f - a) * *tptr + a *
color.get_blue()) , 255);
- *tptr++ = Math::mid(0, int((1.0f - a) * *tptr + a *
color.get_green()), 255);
- *tptr++ = Math::mid(0, int((1.0f - a) * *tptr + a *
color.get_red()) , 255);
+ *tptr++ = Math::mid(0, int(mytptr[0] + a *
color.get_alpha()), 255);
+ *tptr++ = Math::mid(0, int((1.0f - a) * mytptr[1] + a *
color.get_blue()) , 255);
+ *tptr++ = Math::mid(0, int((1.0f - a) * mytptr[2] + a *
color.get_green()), 255);
+ *tptr++ = Math::mid(0, int((1.0f - a) * mytptr[3] + a *
color.get_red()) , 255);
}
}
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Pingus-CVS] rev 2346 - trunk/src,
Ingo Ruhnke <=