Painter MMX expriments, SqlSelect(....) fix

git-svn-id: svn://ultimatepp.org/upp/trunk@793 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2009-01-21 19:07:59 +00:00
parent f1406a4be0
commit fa4a158823
4 changed files with 15 additions and 3 deletions

View file

@ -1,4 +1,4 @@
//#define USE_MMX
// #define USE_MMX
inline RGBA Mul8(const RGBA& s, int mul)
{

View file

@ -58,8 +58,10 @@ void BufferPainter::upp_pixfmt::blend_solid_hspan(int x, int y, int len,
if(c.a == 0) return;
RGBA *t = ptr(x, y);
#ifdef USE_MMX
AlphaBlendCover((dword *)t, *(dword *)&c, covers, len);
return;
if(!noaa) {
AlphaBlendCover((dword *)t, *(dword *)&c, covers, len);
return;
}
#else
RGBA *e = t + len;
while(t < e) {