summaryrefslogtreecommitdiff
path: root/src/screenshooter.c
diff options
context:
space:
mode:
authorKristian Høgsberg <krh@bitplanet.net>2012-06-20 00:28:16 -0400
committerKristian Høgsberg <krh@bitplanet.net>2012-06-20 00:28:19 -0400
commit9c9b3a4b4629f61dc49df762823b08c8544b70b2 (patch)
tree1104a964719925f642e5a010427b855144bd506a /src/screenshooter.c
parente0f832b4f04d5c1d10be4f448460f5795efb6a40 (diff)
downloadweston-9c9b3a4b4629f61dc49df762823b08c8544b70b2.tar.gz
recorder: Always initialize prev when computing the run-length
We need to initialize prev when we handle the initial pixel in a rectangle, or we may detect the following pixel as identical or different when it's not. This causes the top-left pixel in a rectangle to occasionally be wrong leaving a trail of "dirty pixels" in the capture.
Diffstat (limited to 'src/screenshooter.c')
-rw-r--r--src/screenshooter.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/screenshooter.c b/src/screenshooter.c
index 2808f038..542425ee 100644
--- a/src/screenshooter.c
+++ b/src/screenshooter.c
@@ -307,8 +307,8 @@ weston_recorder_frame_notify(struct wl_listener *listener, void *data)
} else {
p = output_run(p, prev, run);
run = 1;
- prev = delta;
}
+ prev = delta;
}
}