diff options
author | Benjamin Otte <otte@redhat.com> | 2010-06-03 18:54:18 +0200 |
---|---|---|
committer | Benjamin Otte <otte@redhat.com> | 2010-06-07 13:37:49 +0200 |
commit | 932ab2641ea3183171c3b5699c96c4709fc6bd49 (patch) | |
tree | 148772d79e8d7a1fdd3465425b4653dac88c2de4 | |
parent | 35e219d08f1c202399655db183ca0105a1c2166f (diff) |
device: flush before setting finished
Otherwise APIs critical for flushing - in particular acquiring the
device - do not work.
-rw-r--r-- | src/cairo-device.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cairo-device.c b/src/cairo-device.c index a090f5b5..933eda98 100644 --- a/src/cairo-device.c +++ b/src/cairo-device.c @@ -175,10 +175,10 @@ cairo_device_finish (cairo_device_t *device) if (device->finished) return; - device->finished = TRUE; - cairo_device_flush (device); + device->finished = TRUE; + if (device->backend->finish != NULL) device->backend->finish (device); } |