summaryrefslogtreecommitdiff
path: root/platform/gl/gl-main.c
AgeCommit message (Collapse)Author
2017-11-09Fix windows build of GL app.Robin Watts
2017-11-08Be a bit paranoid.Tor Andersson
We currently don't handle errors here, but if we do in the future we don't want stale pointers lying around.
2017-11-08Select and copy structured text by lines.Tor Andersson
2017-11-08gl: Remove GLFW and reinstate FreeGLUT.Tor Andersson
GLFW doesn't build on Visual Studio 2005 anymore, and I don't have time to keep up with the changes. So, we're switching back to FreeGLUT, which is more stable. I've added the two missing features that made us switch to GLFW in the first place: input methods and system clipboard support. If MuPDF is compiled with our version of FreeGLUT, we now use these functions: * glutKeyboardExtFunc * glutSetClipboard * glutGetClipboard
2017-11-08Use fz_snprintf in preference to snprintf.Robin Watts
If nothing else, this avoids warnings on VS2005.
2017-09-20gl: Remember scroll position in history and bookmarks.Tor Andersson
2017-09-20gl: Scroll to link coordinates when following links.Tor Andersson
Also save link coordinates in outline nodes.
2017-09-20gl: Add 'I' invert colors command.Tor Andersson
Also apply an inverse gamma correction curve.
2017-05-31Avoid double literals causing casts to float.Sebastian Rasmussen
2017-04-27Clean up store debug printing.Tor Andersson
Replace fz_print_hash with fz_hash_for_each iterator. Use string formatting callback.
2017-04-27Ensure we can compile as -pedantic -std=c99.Tor Andersson
2017-04-27Include required system headers.Tor Andersson
2017-04-13Clean up mupdf-gl usage message.Tor Andersson
2017-04-13gl: Support going to a specific page number on the command line.Tor Andersson
2017-03-22Fix windows GLFW build.Tor Andersson
2017-03-15gl: implement fullscreen supportTuncer Ayaz
2017-03-15gl: use fix title for X11 class and instanceTuncer Ayaz
When creating the GLFW window, filename was used as the title. That makes it impossible to apply window manager rules based on class or instance since each invocation gets a different string based on the filename.
2017-02-20Add F1 help dialog to show key bindings in mupdf-gl.Tor Andersson
2017-02-14gl: Add 'hjkl' keybindings that behave like the arrow keys.Tor Andersson
Change the binding 'l' for showing links to 'L'.
2016-12-27Strip extraneous blank lines.Tor Andersson
2016-12-16gl: Print warning when link destinations cannot be found.Tor Andersson
2016-11-23Add 'X' option to disable document styles.Tor Andersson
2016-11-21Harden viewers against failures when loading outlines.Tor Andersson
Ignore invalid page references in outlines. This was shown by a file that had [null 0 0 1] as a link dest. Attempting to parse that threw an error, which caused the whole outline load to fail.
2016-11-14gl: Only force a ui redraw when link is clicked, not just highlighted.Tor Andersson
2016-11-14Make fz_buffer structure private to fitz.Robin Watts
Move the definition of the structure contents into new fitz-imp.h file. Make all code outside of fitz access the buffer through the defined API. Add a convenience API for people that want to get buffers as null terminated C strings.
2016-11-14Add/fix page coordinates to link targets.Tor Andersson
Correctly transformed target coordinates for PDF. Target coordinates for EPUB and HTML.
2016-10-31gl: Use MessageBox for GLFW initialization error messages on windows.Tor Andersson
2016-10-28Clean up link destination handling.Tor Andersson
All link destinations should be URIs, and a document specific function can be called to resolve them to actual page numbers. Outlines have cached page numbers as well as string URIs.
2016-10-26gl: Show more search result hits.Tor Andersson
2016-10-26Update ios/android to use new way of passion stext options.Sebastian Rasmussen
In addition, make all callers passing 0 as a point pass NULL instead.
2016-10-17gl: Add reload key binding: 'r'.Tor Andersson
2016-10-14gl: Do document layout before loading outline, to prevent laying out twice.Tor Andersson
Loading the outline automatically triggers a layout.
2016-10-07gl: Set glfw error callback before initialisation to catch setup errors.Tor Andersson
2016-10-07Remove separate tmp/deleted/changed annotation lists.Tor Andersson
Use a flag in the pdf_annot struct instead. Don't pass pdf_document to annotation edit functions.
2016-09-08Add options to control heuristics in structured text.Sebastian Rasmussen
2016-07-06gl: Fix buffer overrun when there are too many annotations.Tor Andersson
2016-06-23Update JNI code. Take explicit alpha argument in toPixmap functions.Tor Andersson
2016-06-22gl: Fix annotation textures that have alpha, while page textures don't.Tor Andersson
2016-06-16gl: Add PDF creator and producer to info display.Tor Andersson
2016-05-24fz_pixmap revamp: add stride and make alpha optionalRobin Watts
fz_pixmaps now have an explicit stride value. By default no change from before, but code all copes with extra gaps at the end of the line. The alpha data in fz_pixmaps is no longer compulsory. mudraw: use rgb not rgba (ppmraw), cmyk not cmyka (pkmraw). Update halftone code to not expect alpha plane. Update PNG writing to cope with alpha less input. Also hide repeated params within the png output context. ARM code needs updating.
2016-02-29gl: Show MuPDF version number in usage message.Tor Andersson
2016-01-08gl: Clean up mupdf objects at exit.Tor Andersson
Makes valgrind somewhat usable (glfw and xlib still leak plenty of global objects at exit).
2016-01-05Remove fz_page argument from fz_annot function calls.Tor Andersson
2015-12-11gl: Move related case clauses together.Tor Andersson
2015-11-10gl: Use named constants instead of magic numbers.Tor Andersson
2015-10-29gl: Limit shrinkwrap window sizing to fit the primary monitor size.Tor Andersson
2015-10-14gl: Fix win32 release mode build.Tor Andersson
Always build with the 'windows' subsystem and use WinMain. Turn on USE_OUTPUT_DEBUG_STRING to capture fz_warn and fz_throw error messages.
2015-10-06gl: Remove stray semicolon in win32 file selection error check.Tor Andersson
2015-10-06gl: Accept command line arguments.Tor Andersson
2015-10-06gl: Clamp scrollbar when the content is fully visible.Tor Andersson