summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/modules/snow/snow.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/modules/snow/snow.c b/src/modules/snow/snow.c
index af96285..d1f3758 100644
--- a/src/modules/snow/snow.c
+++ b/src/modules/snow/snow.c
@@ -64,7 +64,11 @@ static void snow_render_fragment(void *context, unsigned ticks, unsigned cpu, fb
for (unsigned y = fragment->y; y < fragment->y + fragment->height; y++) {
for (unsigned x = fragment->x; x < fragment->x + fragment->width; x++) {
+#ifdef __WIN32__
+ uint32_t pixel = rand();
+#else
uint32_t pixel = rand_r(seed) % 256;
+#endif
fb_fragment_put_pixel_unchecked(fragment, x, y, pixel << 16 | pixel << 8 | pixel);
}
© All Rights Reserved