summaryrefslogtreecommitdiff
path: root/source/pdf/pdf-interpret.c
diff options
context:
space:
mode:
authorTor Andersson <tor.andersson@artifex.com>2016-09-22 14:01:31 +0200
committerTor Andersson <tor.andersson@artifex.com>2016-09-23 12:40:33 +0200
commitca8f110730ad5aadbc80a450a46de62c4004cbd1 (patch)
treee2b3dbe2bef2ae4adf78643150575d9722b573a2 /source/pdf/pdf-interpret.c
parent3a29d83d78af4c580d02bae6ae7a81127005a8b6 (diff)
downloadmupdf-ca8f110730ad5aadbc80a450a46de62c4004cbd1.tar.xz
Clean up annotation enum names.
Put them in the PDF name space and separate words with underscores. Remove redundant namespace prefixes in java constants. Device.FLAG_MASK rather than Device.FZ_DEVFLAG_MASK. Use namespace for PDF annotation flag enum.
Diffstat (limited to 'source/pdf/pdf-interpret.c')
-rw-r--r--source/pdf/pdf-interpret.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source/pdf/pdf-interpret.c b/source/pdf/pdf-interpret.c
index 00c4176c..0ae4844a 100644
--- a/source/pdf/pdf-interpret.c
+++ b/source/pdf/pdf-interpret.c
@@ -1254,14 +1254,14 @@ pdf_process_annot(fz_context *ctx, pdf_processor *proc, pdf_document *doc, pdf_p
{
int flags = pdf_to_int(ctx, pdf_dict_get(ctx, annot->obj, PDF_NAME_F));
- if (flags & (F_Invisible | F_Hidden))
+ if (flags & (PDF_ANNOT_IS_INVISIBLE | PDF_ANNOT_IS_HIDDEN))
return;
if (proc->event)
{
- if (!strcmp(proc->event, "Print") && !(flags & F_Print))
+ if (!strcmp(proc->event, "Print") && !(flags & PDF_ANNOT_IS_PRINT))
return;
- if (!strcmp(proc->event, "View") && (flags & F_NoView))
+ if (!strcmp(proc->event, "View") && (flags & PDF_ANNOT_IS_NO_VIEW))
return;
}