messing with dithering again. I won't waste any more time on it!

This commit is contained in:
Chris Danford
2003-04-26 10:57:40 +00:00
parent 93840f07b7
commit c8b325d17f
2 changed files with 4 additions and 3 deletions
+2 -1
View File
@@ -189,7 +189,7 @@ void SM_SDL_ErrorDiffusionDither(const SDL_Surface *src, SDL_Surface *dst)
CLAMP( accumError[c], -128, +128 );
// Keep only a fraction of the error to make the effect more subtle.
accumError[c] /= 4;
accumError[c] /= (rand()%4)+1;
}
srcp += src->format->BytesPerPixel;
@@ -197,3 +197,4 @@ void SM_SDL_ErrorDiffusionDither(const SDL_Surface *src, SDL_Surface *dst)
}
}
}