#include #include int main(int argc, char *argv[]) { cairo_surface_t * recording_surface; cairo_t * cr; double ax0, ay0, aw, ah; recording_surface = cairo_recording_surface_create(CAIRO_CONTENT_ALPHA, NULL); cr = cairo_create(recording_surface); cairo_paint(cr); cairo_recording_surface_ink_extents(recording_surface, &ax0, &ay0, &aw, &ah); printf("Exercising Cairo bug #84952\n"); printf("Ink extents (expected): (-8388608, -8388608, 16777215, 16777215)\n"); printf("Ink extents (obtained): (%.0lf, %.0lf, %.0lf, %.0lf)\n", ax0, ay0, aw, ah); return 1; } /* vi:set et sw=3 sta nowrap: */