Commit graph

558 commits

Author SHA1 Message Date
Harry Jeffery f357024377 Make window system configurable 2019-07-13 11:02:37 +01:00
Harry Jeffery 81ae6d8bc6 Remove OpenGL awareness from core logic 2019-07-13 00:44:36 +01:00
Harry Jeffery 242dbe7cbe window: Formatting 2019-07-13 00:36:37 +01:00
Harry Jeffery 4473f6d8b7 Implement scroll input 2019-07-13 00:35:19 +01:00
Harry Jeffery 5a1571d00d Handle mouse input 2019-07-13 00:25:25 +01:00
Harry Jeffery 9651424722 Remove resizing, not supported in wayland yet 2019-07-12 23:46:45 +01:00
Harry Jeffery 311623d4c1 Modernise event loop 2019-07-12 23:32:44 +01:00
Harry Jeffery 88f7be23b0 Fix event loop hanging 2019-07-12 22:19:28 +01:00
Harry Jeffery d4bb4bd643 Fullscreen support 2019-07-12 21:45:40 +01:00
Harry Jeffery 3200b8f9db Start replacing glfw with imv_window 2019-07-12 00:21:30 +01:00
Harry Jeffery 0910ffd41a Create initial imv_window 2019-07-12 00:13:06 +01:00
Harry Jeffery 12988be654 Add static keyword to internal functions 2019-07-03 23:16:51 +01:00
Harry Jeffery 7c7dc660e5 Big glfw refactor
I did a lot of this in a very ad-hoc fashion with no proper commit
history. As such, the kindest thing to do seemed to be to just squash it
into this one commit.
2019-07-03 20:50:19 +01:00
Harry Jeffery 20e9d23b82 Release v3.1.2 2019-06-24 08:09:42 +01:00
Harry Jeffery 5b6618afd7 Fix manpage packaging 2019-06-24 08:07:29 +01:00
Harry Jeffery fc2722e1c0 Release v3.1.1 2019-06-22 21:40:25 +01:00
Harry Jeffery 4e53f4e9e6
Merge pull request #159 from t6/master
Allow overriding install commands
2019-06-22 21:35:03 +01:00
Tobias Kortkamp 8dbe8a8934
Allow overriding install commands
This will help with packaging things to meet current policies on
FreeBSD without having to patch things or manually strip binaries,
etc.

-D in FreeBSD's install(1) does not work like GNU install's -D and
is something else entirely.  Manually create the target directories
with mkdir first before installing files.

Signed-off-by: Tobias Kortkamp <tobik@FreeBSD.org>
2019-06-22 22:31:40 +02:00
Harry Jeffery 79bba4bf2c Release v3.1.0 2019-06-17 20:36:48 +01:00
Harry Jeffery b4028e981a Add imv_log 2019-06-13 22:17:12 +01:00
Harry Jeffery c544285c93 Readme: Fix link to license file 2019-06-13 00:02:50 +01:00
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