cairo/util/cairo-trace
Emanuele Aina cca8b1960b cairo-trace: Fix duplicated surface push on similar-image
The current code results in trace lines with the source surface being
pushed on the stack two times instead of one:

s1 s1 //ARGB32 48 48 similar-image % s2

Instead of:

s1 //ARGB32 48 48 similar-image % s2

This greatly confuses later commands when the script was replayed,
causing traces for trivial GTK3 programs to be unplayable, usually
yielding the following error:
"invalid value (typically too big) for the size of the input (surface, pattern, etc.)"

Drop the duplicated entry from the trace line printed by the
cairo_surface_create_similar_image() override.

Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=73580
Signed-off-by: Emanuele Aina <emanuele.aina@collabora.com>
2015-01-20 18:14:52 +01:00
..
.gitignore [.gitignore] Add 2008-10-31 13:43:37 -04:00
cairo-trace.in doc: fix a few typos found by codespell 2012-03-10 10:20:28 +01:00
COPYING Add a COPYING file to each aux. source directory 2008-10-31 16:14:14 +00:00
COPYING-GPL-3 Add a COPYING file to each aux. source directory 2008-10-31 16:14:14 +00:00
lookup-symbol.c Remove useless checks for NULL before freeing 2011-07-31 16:46:36 +02:00
lookup-symbol.h [util] Add cairo-trace. 2008-10-31 15:37:58 +00:00
Makefile.am build: Rework pthread detection. 2010-07-11 21:40:26 +03:00
trace.c cairo-trace: Fix duplicated surface push on similar-image 2015-01-20 18:14:52 +01:00