summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--libdimension/raytrace.c7
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;