[cairo-commit] src/cairo-recording-surface.c

Chris Wilson ickle at kemper.freedesktop.org
Thu Jul 28 08:45:38 PDT 2011


 src/cairo-recording-surface.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 96abd9b887a4d663950b79d055572f9f2f09efbe
Author: Chris Wilson <chris at chris-wilson.co.uk>
Date:   Thu Jul 28 16:42:41 2011 +0100

    record: And remember to offset the index of unbounded playback
    
    When we don't generate the set of visible indices, we need to iterate
    over all the currently active commands and so need to offset the
    iterator to the start of those commands.
    
    Signed-off-by: Chris Wilson <chris at chris-wilson.co.uk>

diff --git a/src/cairo-recording-surface.c b/src/cairo-recording-surface.c
index 7fd94fe..5df5ee5 100644
--- a/src/cairo-recording-surface.c
+++ b/src/cairo-recording-surface.c
@@ -1269,7 +1269,7 @@ _cairo_recording_surface_replay_internal (cairo_recording_surface_t	*surface,
     }
 
     for (i = 0; i < num_elements; i++) {
-	cairo_command_t *command = elements[use_indices ? surface->indices[i] : i];
+	cairo_command_t *command = elements[use_indices ? surface->indices[i] : i + surface->replay_start_idx];
 
 	if (! replay_all && command->header.region != region)
 	    continue;


More information about the cairo-commit mailing list