From e8d45740914665587e70869d54b93679ca46e42b Mon Sep 17 00:00:00 2001 From: Daniel Collin Date: Fri, 6 Jun 2014 14:39:09 +0200 Subject: [PATCH] Fixed MSVC warning + grayscale colors --- tests/noise.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/noise.c b/tests/noise.c index 7a02414..86b3fa6 100644 --- a/tests/noise.c +++ b/tests/noise.c @@ -13,7 +13,7 @@ int main() if (!mfb_open("Noise Test", WIDTH, HEIGHT)) return 0; - while (1) + for (;;) { int i, state; @@ -27,7 +27,7 @@ int main() seed >>= 1; seed |= (carry << 30); noise &= 0xFF; - s_buffer[i] = MFB_RGB(0, noise, 0); + s_buffer[i] = MFB_RGB(noise, noise, noise); } state = mfb_update(s_buffer);