diff options
author | Paul Gardiner <paul@glidos.net> | 2012-07-16 10:42:02 +0100 |
---|---|---|
committer | Paul Gardiner <paul@glidos.net> | 2012-07-17 12:57:39 +0100 |
commit | 4387a60412b2c24f6961d0e3cc45ed97c7f05d5a (patch) | |
tree | a01081c905cf51ee1672ec36feb75192d26ea1bd /pdf/pdf_form.c | |
parent | ee93773f786228f8f199cf547f7af6e456a90741 (diff) | |
download | mupdf-4387a60412b2c24f6961d0e3cc45ed97c7f05d5a.tar.xz |
Forms: remove unhelpful type distinction
Diffstat (limited to 'pdf/pdf_form.c')
-rw-r--r-- | pdf/pdf_form.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/pdf/pdf_form.c b/pdf/pdf_form.c index 90b89d25..3380faf3 100644 --- a/pdf/pdf_form.c +++ b/pdf/pdf_form.c @@ -1889,7 +1889,7 @@ fz_rect *fz_widget_get_bbox(fz_widget *widget) return &annot->pagerect; } -char *pdf_widget_text_get_text(pdf_document *doc, fz_widget_text *tw) +char *pdf_widget_text_get_text(pdf_document *doc, fz_widget *tw) { pdf_annot *annot = (pdf_annot *)tw; fz_context *ctx = doc->ctx; @@ -1908,14 +1908,14 @@ char *pdf_widget_text_get_text(pdf_document *doc, fz_widget_text *tw) return text; } -int pdf_widget_text_get_max_len(pdf_document *doc, fz_widget_text *tw) +int pdf_widget_text_get_max_len(pdf_document *doc, fz_widget *tw) { pdf_annot *annot = (pdf_annot *)tw; return pdf_to_int(get_inheritable(doc, annot->obj, "MaxLen")); } -int pdf_widget_text_get_content_type(pdf_document *doc, fz_widget_text *tw) +int pdf_widget_text_get_content_type(pdf_document *doc, fz_widget *tw) { pdf_annot *annot = (pdf_annot *)tw; fz_context *ctx = doc->ctx; @@ -1950,7 +1950,7 @@ int pdf_widget_text_get_content_type(pdf_document *doc, fz_widget_text *tw) return type; } -void pdf_widget_text_set_text(pdf_document *doc, fz_widget_text *tw, char *text) +void pdf_widget_text_set_text(pdf_document *doc, fz_widget *tw, char *text) { pdf_annot *annot = (pdf_annot *)tw; fz_context *ctx = doc->ctx; |