From b448cfa933a219d58374c7787ce0f6103c5a5108 Mon Sep 17 00:00:00 2001 From: Mart Raudsepp Date: Tue, 7 Aug 2012 04:42:54 +0300 Subject: [PATCH] Preliminary patch for negative srcX and/or srcY PictOpSrc operations Needs lots more thought and code path validation, especially in regards to various combinations of operations that it may affect and the while (1) loop afterwards. Fixes testcase on bug 51360 at least, but apparently not quite gnome3-panel (some collateral damage in the hack or another issue on top) --- src/lx_exa.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lx_exa.c b/src/lx_exa.c index bcff23e..30b093d 100644 --- a/src/lx_exa.c +++ b/src/lx_exa.c @@ -1337,8 +1337,8 @@ lx_do_composite(PixmapPtr pxDst, int srcX, int srcY, int maskX, opHeight = height; } else { - /* Have not met this condition till now */ - return; + if (srcX < 0) opX = -srcX; + if (srcY < 0) opY = -srcY; } } else { -- 1.7.8.6