From 6bfc655ee19aa82cce3277e6f9c861661cca5fb4 Mon Sep 17 00:00:00 2001 From: Miguel Freitas Date: Tue, 19 Jul 2005 18:10:29 +0000 Subject: update goom to 2k4-0 + patches. details: - removed convolve_fx: goom logo is definitely annoying. besides using xine_fast_memcpy instead of convolve makes it much faster! - reduced number of tentacles: too many tentacles on low res (320x240) made it too brighter - darker ifs.c: again problem with low res, image was saturating to white most of the time - increased fps to 14 now that goom is faster ;-) CVS patchset: 7667 CVS date: 2005/07/19 18:10:29 --- src/post/goom/goom_tools.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/post/goom/goom_tools.c') diff --git a/src/post/goom/goom_tools.c b/src/post/goom/goom_tools.c index ec7ec1934..6753da544 100644 --- a/src/post/goom/goom_tools.c +++ b/src/post/goom/goom_tools.c @@ -14,7 +14,11 @@ void goom_random_free(GoomRandom *grandom) { void goom_random_update_array(GoomRandom *grandom, int numberOfValuesToChange) { while (numberOfValuesToChange > 0) { +#if RAND_MAX < 0x10000 + grandom->array[grandom->pos++] = ((rand()<<16)+rand()) / 127; +#else grandom->array[grandom->pos++] = rand() / 127; +#endif numberOfValuesToChange--; } } -- cgit v1.2.3