diff options
author | Tor Andersson <tor.andersson@artifex.com> | 2017-04-24 16:17:15 +0200 |
---|---|---|
committer | Tor Andersson <tor.andersson@artifex.com> | 2017-04-27 15:12:03 +0200 |
commit | 722ff826ea46ef49f57b927435d320c67ae37037 (patch) | |
tree | c0866a123f3ca3bad18deef6a847ca75d06e1e55 /platform/gl | |
parent | 9534243f6849d1938195c1f27adaa5745056f138 (diff) | |
download | mupdf-722ff826ea46ef49f57b927435d320c67ae37037.tar.xz |
Ensure we can compile as -pedantic -std=c99.
Diffstat (limited to 'platform/gl')
-rw-r--r-- | platform/gl/gl-main.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/platform/gl/gl-main.c b/platform/gl/gl-main.c index 338ed0dc..060b8e13 100644 --- a/platform/gl/gl-main.c +++ b/platform/gl/gl-main.c @@ -678,6 +678,7 @@ static void do_search_hits(int xofs, int yofs) static void do_forms(float xofs, float yofs) { + static int do_forms_tag = 0; pdf_ui_event event; fz_point p; int i; @@ -700,13 +701,13 @@ static void do_forms(float xofs, float yofs) if (pdf_pass_event(ctx, pdf, (pdf_page*)page, &event)) { if (pdf->focus) - ui.active = do_forms; + ui.active = &do_forms_tag; pdf_update_page(ctx, (pdf_page*)page); render_page(); ui_needs_update = 1; } } - else if (ui.active == do_forms && !ui.down) + else if (ui.active == &do_forms_tag && !ui.down) { ui.active = NULL; event.etype = PDF_EVENT_TYPE_POINTER; |