Fixed MSVC warning + grayscale colors

This commit is contained in:
Daniel Collin 2014-06-06 14:39:09 +02:00
parent 5f8f4be350
commit e8d4574091

View File

@ -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);