diff options
Diffstat (limited to 'libdimension/raytrace.c')
-rw-r--r-- | libdimension/raytrace.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/libdimension/raytrace.c b/libdimension/raytrace.c index 74bfefc..3a266a2 100644 --- a/libdimension/raytrace.c +++ b/libdimension/raytrace.c @@ -227,12 +227,9 @@ dmnsn_raytrace_scene_impl(dmnsn_progress *progress, dmnsn_scene *scene, width = scene->canvas->x; height = scene->canvas->y; - /* Initialize `x' */ - x = width + index; - /* Iterate through each pixel */ - for (y = 0; y < height; ++y) { - for (x -= width; x < width; x += threads) { + for (y = index; y < height; y += threads) { + for (x = 0; x < width; ++x) { /* Set the pixel to the background color */ color = scene->background; |