~ubuntu-branches/ubuntu/hardy/libgdiplus/hardy

« back to all changes in this revision

Viewing changes to cairo/src/cairo-paginated-surface.c

  • Committer: Bazaar Package Importer
  • Author(s): Emilio Pozuelo Monfort
  • Date: 2007-12-18 13:08:10 UTC
  • mfrom: (1.1.15 upstream)
  • Revision ID: james.westby@ubuntu.com-20071218130810-hlmitxfddf6h511j
Tags: 1.2.6-1ubuntu1
* Sync with Debian:
  - debian/control:
    + Add lpia and sparc to the architectures. We support them.
    + Change Maintainer to Ubuntu Mono Team.

Show diffs side-by-side

added added

removed removed

Lines of Context:
134
134
    if (surface->page_is_blank == FALSE || surface->page_num == 1)
135
135
        status = _cairo_paginated_surface_show_page (abstract_surface);
136
136
 
137
 
    if (status == CAIRO_STATUS_SUCCESS)
 
137
    if (status == CAIRO_STATUS_SUCCESS) {
138
138
        cairo_surface_finish (surface->target);
 
139
        status = cairo_surface_status (surface->target);
 
140
    }
139
141
 
140
 
    if (status == CAIRO_STATUS_SUCCESS)
 
142
    if (status == CAIRO_STATUS_SUCCESS) {
141
143
        cairo_surface_finish (surface->meta);
 
144
        status = cairo_surface_status (surface->meta);
 
145
    }
142
146
 
143
147
    cairo_surface_destroy (surface->target);
144
148
 
214
218
 
215
219
    analysis = _cairo_analysis_surface_create (surface->target,
216
220
                                               surface->width, surface->height);
 
221
    if (analysis == NULL)
 
222
        return CAIRO_STATUS_NO_MEMORY;
217
223
 
218
224
    surface->backend->set_paginated_mode (surface->target, CAIRO_PAGINATED_MODE_ANALYZE);
219
225
    status = _cairo_meta_surface_replay (surface->meta, analysis);
281
287
    if (status)
282
288
        return status;
283
289
 
284
 
    _paint_page (surface);
 
290
    status = _paint_page (surface);
 
291
    if (status)
 
292
        return status;
285
293
 
286
294
    surface->page_num++;
287
295
 
306
314
    if (status)
307
315
        return status;
308
316
 
309
 
    _paint_page (surface);
 
317
    status = _paint_page (surface);
 
318
    if (status)
 
319
        return status;
310
320
 
311
321
    status = _cairo_surface_show_page (surface->target);
312
322
    if (status)
313
323
        return status;
314
324
 
 
325
    if (cairo_surface_status (surface->meta))
 
326
        return cairo_surface_status (surface->meta);
 
327
 
315
328
    cairo_surface_destroy (surface->meta);
316
329
 
317
330
    surface->meta = _cairo_meta_surface_create (surface->content,