Commit graph

247 commits

Author SHA1 Message Date
Harry Jeffery 8419a8a8e2 Load still images in the background 2015-11-28 00:07:50 +00:00
Harry Jeffery 5486778244 add imv_navigator_remove_path function 2015-11-27 14:00:32 +00:00
Harry Jeffery 5f6fb9fb0d Retrive viewport image dimensions from texture, not loader 2015-11-27 13:53:19 +00:00
Harry Jeffery b17cb802d0 Start performing loading in BG 2015-11-27 13:44:29 +00:00
Harry Jeffery 60d604587d Fix loader header guard 2015-11-23 12:53:41 +00:00
Harry Jeffery 99c9118a58 Remove unnecessary malloc casts 2015-11-20 13:54:17 +00:00
Harry Jeffery 81091690ba Add support for -n PATH starting specifier
Fixes #36
2015-11-20 11:43:38 +00:00
Harry Jeffery f044837562 Rename imv_image -> imv_loader to prepare for refactoring 2015-11-19 23:38:59 +00:00
Harry Jeffery 2737649cef Use fontconfig to search for fonts 2015-11-19 23:25:33 +00:00
Harry Jeffery 28c53b379b Don't recommend -i in documentation 2015-11-19 16:08:12 +00:00
Harry Jeffery 53fd3b8f3a Add an overlay option '-d'.
TODO: The font needs to be configurable with an option.

Refs #35
2015-11-17 17:14:57 +00:00
Harry Jeffery a5597a9587 Support upper-case hex
Fixes #32
2015-11-16 10:23:42 +00:00
Harry Jeffery c14df765d8 Fix memory leak 2015-11-14 23:13:18 +00:00
Harry Jeffery 0a734c28df Fix non-animated gifs 2015-11-14 23:13:11 +00:00
Harry Jeffery 847c58a46b Rework zooming 2015-11-14 23:02:03 +00:00
Harry Jeffery add98346bb Don't use FreeImage_AllocateEx 2015-11-14 22:39:55 +00:00
Harry Jeffery d3e7f724f0 Add -u option for nearest neighbour resampling 2015-11-14 20:17:40 +00:00
Harry Jeffery 5abc07fd2e Don't use FreeImage_EnlargeCanvas
It's a relatively new feature in FreeImage and easily avoided. Not using
it will fix the build on Fedora 22.

Fixes #9
2015-11-14 18:35:25 +00:00
Harry Jeffery 98ac48de35 Add -b option to set background 2015-11-14 17:05:55 +00:00
Harry Jeffery 84f325bc63 Add support for chequered/colored backgrounds 2015-11-14 16:33:56 +00:00
Harry Jeffery f4b81bd693 Fix PNG transparency 2015-11-14 12:13:35 +00:00
Harry Jeffery a8fe29c813 Remove obsolete 's' hotkey 2015-11-13 22:56:30 +00:00
Harry Jeffery 85d2d03e59 Just show new frame for unhandled cases
I finally came across a gif that uses the previous-background disposal
method. Using the default method worked for it, so for now let's just do
that.
2015-11-13 21:49:29 +00:00
Michal Koutenský 3151dca2ee imv_navigator_set_path 2015-11-13 21:45:01 +00:00
Michal Koutenský 0b2be425c3 sxiv-like 'start at' option 2015-11-13 21:45:01 +00:00
Harry Jeffery 33d2d45e4e Fix out of date usage synopsis 2015-11-13 20:42:31 +00:00
Harry Jeffery a22c50fc80 Merge pull request #23 from autrimpo/master
parse options using getopt
2015-11-13 20:40:17 +00:00
Harry Jeffery 8593ac9ab4 Fix gif playback speed for some gifs
Some gifs don't provide a frametime at all, so we have to guess one for
ourselves.

Fixes #4
2015-11-13 20:35:19 +00:00
Harry Jeffery 5714a2cbd9 Fix crash 0 when max texture dimensions = 0
In software rendering mode SDL sets the maximum dimensions to 0. In this
case, switch back to 4096 pixel maximum chunk sizes as a reasonable
default.
2015-11-12 23:15:03 +00:00
Michal Koutenský 68668c3d74 position independend - 2015-11-12 20:58:33 +01:00
Michal Koutenský 82e684b810 parse options using getopt 2015-11-12 20:43:08 +01:00
Harry Jeffery 2615a3f2ba Relicence imv to GPLv2+ 2015-11-12 17:49:23 +00:00
Harry Jeffery f14f099682 Use just '-' to signify stdin file list
Fixes #7
2015-11-12 13:20:32 +00:00
Harry Jeffery 9cd0c1bd65 Print current image path to stdout
Fixes #10
2015-11-12 13:12:44 +00:00
Harry Jeffery 0f7b7cfda8 Add GPL information for the FreeImage library
Fixes #14
2015-11-12 13:08:49 +00:00
Harry Jeffery 894d38730f Print version information in help 2015-11-11 20:40:59 +00:00
Harry Jeffery 6adc823b4e Tweak scaling 2015-11-11 19:44:30 +00:00
Harry Jeffery 2df8dcd7b1 Improve zooming behaviour 2015-11-11 18:12:05 +00:00
Jose Diez 12f6a47b9e Zoom into things 2015-11-11 18:12:05 +00:00
Jose Diez c05412208d Center into image when the mouse is outside bounds 2015-11-11 18:12:05 +00:00
Jose Diez 79281774a6 Improved zoom behaviour 2015-11-11 18:12:05 +00:00
Harry Jeffery 8be90edcaa Move SDL_RenderClear and SDL_RenderPresent back to main 2015-11-11 17:40:55 +00:00
Harry Jeffery 08947b293b Add -a flag and update usage 2015-11-11 16:45:33 +00:00
Harry Jeffery 506dd25de5 Merge some frame processing logic 2015-11-11 16:34:00 +00:00
Jose Diez 587a51cf8b viewport_reset -> viewport_scale_to_window, add viewport_scale_to_actual 2015-11-11 16:18:00 +00:00
Jose Diez c53ca5a9c5 Viewport: autoscale and center by default unless interacted with 2015-11-11 16:05:32 +00:00
Harry Jeffery 8b527949b0 Update makefile to use a build directory 2015-11-11 15:22:41 +00:00