From a4a3ad0ee82b0731c540e90c3c137a240acb10f2 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Sun, 24 Mar 2019 13:53:03 +0100 Subject: Implement text selection in slides --- src/pdfstorycode.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/pdfstorycode.c b/src/pdfstorycode.c index 566f924..421839d 100644 --- a/src/pdfstorycode.c +++ b/src/pdfstorycode.c @@ -51,6 +51,7 @@ static int render_slides_to_pdf(Presentation *p, ImageStore *is, const char *fil cairo_t *cr; int i; PangoContext *pc; + struct slide_pos sel; surf = cairo_pdf_surface_create(filename, w, w); if ( cairo_surface_status(surf) != CAIRO_STATUS_SUCCESS ) { @@ -61,6 +62,8 @@ static int render_slides_to_pdf(Presentation *p, ImageStore *is, const char *fil cr = cairo_create(surf); pc = pango_cairo_create_context(cr); + sel.para = 0; sel.pos = 0; sel.trail = 0; + for ( i=0; i