aboutsummaryrefslogtreecommitdiffstats
path: root/fbpdf.c
diff options
context:
space:
mode:
Diffstat (limited to 'fbpdf.c')
-rw-r--r--fbpdf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fbpdf.c b/fbpdf.c
index c29f78b..2e08fff 100644
--- a/fbpdf.c
+++ b/fbpdf.c
@@ -337,13 +337,13 @@ int main(int argc, char *argv[])
}
surface1 = cairo_image_surface_create_for_data(gfx->mem,
- CAIRO_FORMAT_ARGB32,
+ gfx->fmt->cairo,
gfx->hdisplay,
gfx->vdisplay,
gfx->stride);
if (gfx->mem2) {
surface2 = cairo_image_surface_create_for_data(gfx->mem2,
- CAIRO_FORMAT_ARGB32,
+ gfx->fmt->cairo,
gfx->hdisplay,
gfx->vdisplay,
gfx->stride);