Commit graph

587 commits

Author SHA1 Message Date
Harry Jeffery 9b57e0a89f svg: Fix flipped colors
Fixes #157
2019-06-12 20:04:48 +01:00
Harry Jeffery 4d965ab261 Add support for hidpi rendering
This fixes #148 but only when used with a version of SDL that includes
this patch: https://bugzilla.libsdl.org/show_bug.cgi?id=4521
2019-06-12 01:43:14 +01:00
Harry Jeffery db991685de imv:handle_event small tidy up 2019-06-12 01:43:14 +01:00
Harry Jeffery aa1a495a60 rsvg: Determine if svg from first 4096 bytes
The previous value of 128 isn't sufficient because some hand-crafted
SVGs have comments at the start. Going for a whole page of memory seemed
like the right amount of data without becoming too slow.
2019-06-12 01:43:14 +01:00
Harry Jeffery dfc7ba4b80
Merge pull request #154 from 7415963987456321/add-version-flag
Add version flag with -v
2019-05-30 00:26:28 +01:00
Harry Jeffery 43bc6f4ac2
Merge pull request #156 from vglfr/bugfix/svg/slowfix
Expand relative paths (fixes #149)
2019-05-30 00:23:44 +01:00
vglfr 7cf0b71618 Expand relative paths (fixes #149) 2019-05-26 09:46:59 +03:00
7415963987456321 9fc019cd41 Add version flag with -v 2019-05-10 00:21:17 +00:00
Harry Jeffery e278e28989 binds: Make Double-Escape the key sequence abort
By using escape to abort all key input sequences, it became unbindable
despite being documented as so. Make the sequence double-escape to fix
this. The downside here is now double-escape is unbindable, but that's
unlikely to be an issue.

Fixes #147
2019-03-01 13:44:29 +00:00
Harry Jeffery 4a2ce2e9ee Fix copy-paste error in resizing mode parsing 2019-02-27 20:05:37 +00:00
Harry Jeffery cd0684a2cb Makefile: Don't use $(wildcard) 2019-02-23 21:04:10 +00:00
Harry Jeffery 28eb7b50dc navigator: Simplify file polling
We don't need to know when all paths were last touched, just when we
switched to the current path, and the last time that the file changed.

This also fixes a bug where imv would double-load images as it refreshed
its internal mtime.
2019-02-16 21:54:52 +00:00
Harry Jeffery 4eaa1c89ae Add customisable image resizing behaviour
Two new flags: -w and -W enable resizing and recentering, respectively.
Also add an 'autoresize' config variable to control this behaviour.

Fixes #122
2019-02-16 21:01:38 +00:00
Harry Jeffery b1f7fe555c Fix truncated path list from stdin
It turns out, the paths from stdin weren't being truncated. The issue
was with the use of the SDL event queue for passing the paths back to
imv's main thread.

The events were being pushed correctly, but due to a workaround for a
bug in SDL, instead of flushing the contents of the event queue, we now
ignore window events until all events already in the queue have been
handled.

This fixes #141
2019-02-16 14:35:27 +00:00
Harry Jeffery 8323dfc6fc meta: Update CI badge 2019-02-15 22:42:36 +00:00
Harry Jeffery 3d007bc47c meta: Move CI to sr.ht 2019-02-15 22:24:50 +00:00
Harry Jeffery e6b9072be3 png: Don't use non-portable alloca 2019-02-15 22:02:57 +00:00
Harry Jeffery d737b34430 imv: Add lots of comments to struct imv 2019-02-10 23:42:30 +00:00
Harry Jeffery 32aae1077e imv: Use calloc for lazy initialisation 2019-02-10 16:50:05 +00:00
Harry Jeffery e3836c371f imv: Fix uninit background_type 2019-02-10 16:39:41 +00:00
Harry Jeffery 551464706c Tweak allocation sizeof operator usage 2019-02-10 00:49:27 +00:00
Harry Jeffery a306cd5516 image: Small tidy up 2019-02-04 11:18:13 +00:00
Harry Jeffery f57d0adaec Run sources in background threads 2019-02-04 03:53:36 +00:00
Harry Jeffery 05db4c452c Make sources thread-safe 2019-02-04 03:48:03 +00:00
Harry Jeffery 09928120e3 rsvg: Add open_memory support 2019-02-02 23:44:22 +00:00
Harry Jeffery 469435f469 Add libtiff to travis.yml 2019-02-02 22:36:09 +00:00
Harry Jeffery 31e3a4a450 Add libtiff backend 2019-02-02 22:35:18 +00:00
Harry Jeffery a857a8805c jpeg: Fix mmap error handler 2019-02-02 22:09:28 +00:00
Harry Jeffery ffa73dc180 Update contribution guide 2019-01-31 22:31:38 +00:00
Harry Jeffery 0f1f32a149 jpeg: Add open_memory support 2019-01-31 22:04:48 +00:00
Harry Jeffery 6b639fe19b Tweak comments on backend accessor functions 2019-01-31 22:04:48 +00:00
Harry Jeffery bd3504c580 Add libjpeg-turbo backend 2019-01-31 22:04:48 +00:00
Harry Jeffery c46924345f imv: Close unsupported images more rapidly 2019-01-31 00:19:42 +00:00
Harry Jeffery 35c81938f3 Fix some compiler warnings 2019-01-31 00:02:51 +00:00
Harry Jeffery 4681319d1d Tweak Makefile flag handling 2019-01-31 00:02:06 +00:00
Harry Jeffery 265e7f43a6 rsvg: Fix missing stdlib include 2019-01-30 23:24:41 +00:00
Harry Jeffery 527cc9ef36 Tweak default + CI build strictness 2019-01-30 23:24:27 +00:00
Harry Jeffery c181e7ee9b Update tests for new backend approach 2019-01-30 23:15:14 +00:00
Harry Jeffery cfcf77f1ed Tweak CI build rules 2019-01-30 23:12:59 +00:00
Harry Jeffery 442752efde loader: Delete legacy loader 2019-01-29 22:26:22 +00:00
Harry Jeffery 4d74ab1be3 FreeImage: Add open_memory support 2019-01-29 22:26:22 +00:00
Harry Jeffery ef3fab3d21 imv: Use open_memory for stdin 2019-01-29 22:26:22 +00:00
Harry Jeffery 453d70f9b7 backend: Add open_memory function 2019-01-29 22:26:22 +00:00
Harry Jeffery 5ea3ec05df imv: Improve failed load error handling 2019-01-29 22:26:22 +00:00
Harry Jeffery 4461e36a26 imv: Tweak whitespace style 2019-01-29 22:26:22 +00:00
Harry Jeffery b287cd2e5d rsvg: Fix uninitialised pointer 2019-01-29 22:26:22 +00:00
Harry Jeffery 2b5907c660 png: Fix loading of PNGs missing an alpha channel 2019-01-29 22:26:22 +00:00
Harry Jeffery 075bc7705f Add PACKAGERS file 2019-01-29 22:26:22 +00:00
Harry Jeffery c7d76a143c Update README 2019-01-29 22:26:22 +00:00
Harry Jeffery 167b640188 Make backends self-describing 2019-01-29 22:26:22 +00:00