diff options
author | Paul Gardiner <paulg.artifex@glidos.net> | 2013-08-02 12:27:37 +0100 |
---|---|---|
committer | Paul Gardiner <paulg.artifex@glidos.net> | 2013-08-02 12:27:37 +0100 |
commit | 05c787d00dc552326c720bd0aadec7029d2ffc00 (patch) | |
tree | e478f4e75b65f363af6498c269a658d09150d4d9 | |
parent | ce654e2a4906ae4cbef1acafe1d608a2242eedee (diff) | |
download | mupdf-05c787d00dc552326c720bd0aadec7029d2ffc00.tar.xz |
Improve naming consistency
-rw-r--r-- | include/mupdf/pdf/appearance.h | 14 | ||||
-rw-r--r-- | source/pdf/pdf-appearance.c | 2 | ||||
-rw-r--r-- | source/pdf/pdf-form.c | 2 |
3 files changed, 8 insertions, 10 deletions
diff --git a/include/mupdf/pdf/appearance.h b/include/mupdf/pdf/appearance.h index 19a7ffbf..89067667 100644 --- a/include/mupdf/pdf/appearance.h +++ b/include/mupdf/pdf/appearance.h @@ -17,6 +17,12 @@ void pdf_update_text_appearance(pdf_document *doc, pdf_obj *obj, char *eventValu void pdf_update_combobox_appearance(pdf_document *doc, pdf_obj *obj); void pdf_update_pushbutton_appearance(pdf_document *doc, pdf_obj *obj); void pdf_update_text_markup_appearance(pdf_document *doc, pdf_annot *annot, fz_annot_type type); +void pdf_update_ink_appearance(pdf_document *doc, pdf_annot *annot); +/* + pdf_update_free_text_annot_appearance: update the appearance stream for a free text + annotation, basing it on the annoations rectangle and contents. +*/ +void pdf_update_free_text_annot_appearance(pdf_document *doc, pdf_annot *annot); /* pdf_set_annot_appearance: update the appearance of an annotation based @@ -30,12 +36,4 @@ void pdf_set_annot_appearance(pdf_document *doc, pdf_annot *annot, fz_rect *rect */ void pdf_set_markup_appearance(pdf_document *doc, pdf_annot *annot, float color[3], float alpha, float line_thickness, float line_height); -/* - pdf_update_free_text_annot_appearance: update the appearance stream for a free text - annotation, basing it on the annoations rectangle and contents. -*/ -void pdf_update_free_text_annot_appearance(pdf_document *doc, pdf_annot *annot); - -void pdf_set_ink_appearance(pdf_document *doc, pdf_annot *annot); - #endif diff --git a/source/pdf/pdf-appearance.c b/source/pdf/pdf-appearance.c index 81781ba6..8c2c85bf 100644 --- a/source/pdf/pdf-appearance.c +++ b/source/pdf/pdf-appearance.c @@ -1541,7 +1541,7 @@ static fz_colorspace *pdf_to_color(pdf_document *doc, pdf_obj *col, float color[ return cs; } -void pdf_set_ink_appearance(pdf_document *doc, pdf_annot *annot) +void pdf_update_ink_appearance(pdf_document *doc, pdf_annot *annot) { fz_context *ctx = doc->ctx; const fz_matrix *page_ctm = &annot->page->ctm; diff --git a/source/pdf/pdf-form.c b/source/pdf/pdf-form.c index 1ba2cd82..3aa55065 100644 --- a/source/pdf/pdf-form.c +++ b/source/pdf/pdf-form.c @@ -481,7 +481,7 @@ void pdf_update_appearance(pdf_document *doc, pdf_annot *annot) pdf_update_text_markup_appearance(doc, annot, type); break; case FZ_ANNOT_INK: - pdf_set_ink_appearance(doc, annot); + pdf_update_ink_appearance(doc, annot); break; default: break; |