summaryrefslogtreecommitdiff
path: root/src/modules/julia
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/julia')
-rw-r--r--src/modules/julia/julia.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/julia/julia.c b/src/modules/julia/julia.c
index ea97a77..a83fe00 100644
--- a/src/modules/julia/julia.c
+++ b/src/modules/julia/julia.c
@@ -133,7 +133,7 @@ static void julia_render_fragment(void *context, fb_fragment_t *fragment)
{
julia_context_t *ctxt = context;
unsigned x, y;
- unsigned stride = fragment->stride / 4, width = fragment->width, height = fragment->height;
+ unsigned width = fragment->width, height = fragment->height;
uint32_t *buf = fragment->buf;
float real, imag;
float realstep = 3.6f / (float)fragment->frame_width, imagstep = 3.6f / (float)fragment->frame_height;
@@ -145,7 +145,7 @@ static void julia_render_fragment(void *context, fb_fragment_t *fragment)
*buf = colors[julia_iter(real, imag, ctxt->creal, ctxt->cimag, sizeof(colors) / sizeof(*colors))];
}
- buf += stride;
+ buf = ((void *)buf) + fragment->stride;
}
}
© All Rights Reserved