summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaarten Lankhorst <maarten.lankhorst@canonical.com>2012-10-23 17:04:37 +0200
committerMaarten Lankhorst <maarten.lankhorst@canonical.com>2012-10-23 17:04:37 +0200
commit2a757b7dffa85c30879653a1e52e33b8f4fa8806 (patch)
tree3c236676874fa870c08e25d241498953c7b079cd
parent72230cd5a7846f7a26f929262a745dc0bdc34a3d (diff)
downloadxorg-driver-xf86-video-nouveau-2a757b7dffa85c30879653a1e52e33b8f4fa8806.tar.gz
exa: fix comparison in download_from_screen
Presumably a copy/paste error from upload_to_screen. Signed-off-by: Maarten Lankhorst <maarten.lankhorst@canonical.com>
-rw-r--r--src/nouveau_exa.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nouveau_exa.c b/src/nouveau_exa.c
index 136b68f..b0d63a1 100644
--- a/src/nouveau_exa.c
+++ b/src/nouveau_exa.c
@@ -269,7 +269,7 @@ nouveau_exa_download_from_screen(PixmapPtr pspix, int x, int y, int w, int h,
goto memcpy;
nouveau_bo_wait(tmp, NOUVEAU_BO_RD, pNv->client);
- if (src_pitch == tmp_pitch) {
+ if (dst_pitch == tmp_pitch) {
memcpy(dst, tmp->map + tmp_offset, dst_pitch * lines);
dst += dst_pitch * lines;
} else {