Commit graph

223 commits

Author SHA1 Message Date
Dmitrij D. Czarkoff c42ab08819 Add verbose mode
If V variable is set to any value, commands will be echoed to standard output.
2015-12-25 17:52:01 +01:00
Dmitrij D. Czarkoff 77827c838e Make installation locations more configurable
This might be desired when platform has its own, custom layout (eg. OpenBSD or
Solaris), or when user wants to install the program to his home directory.
2015-12-25 15:29:12 +01:00
Dmitrij D. Czarkoff 6de6b358e8 Use "shell" macro in CFLAGS
When CFLAGS contain "`cmd`" construct, the "cmd" command is executed every time
when make issues shell command with expanded CFLAGS.  Using "$(shell cmd)"
instead forces make to expand output of "cmd" into CFLAGS.
2015-12-25 15:27:00 +01:00
Dmitrij D. Czarkoff 57d83b7b37 Respect default CFLAGS and LDFLAGS if set in environment
Some package management systems allow users to set default CFLAGS and LDFLAGS
and then supply them to the make via environment.  This change makes build
infrastructure respect such settings.

Also, don't force non-essential flags.
2015-12-25 15:11:32 +01:00
Dmitrij D. Czarkoff ab0c27611b Use "PREFIX" instead of "prefix"
Most package management systems already expect "PREFIX" macro to control
installation path.
2015-12-25 15:07:03 +01:00
Harry Jeffery a01f3b3b1a Merge pull request #55 from khanley6/LinkingFix
Fixed linking order to properly link libraries. Linking failed prior
2015-12-12 18:11:50 +00:00
Kenneth Hanley 083bf9e5ee Fixed linking order to properly link libraries. Linking failed prior 2015-12-12 17:13:35 +00:00
Harry Jeffery f7365c85bd Release v1.2.0 2015-12-11 15:46:17 +00:00
Harry Jeffery 33790ffb7d Update README 2015-12-11 15:38:26 +00:00
Harry Jeffery 6b65212399 Document default background color 2015-12-11 15:32:42 +00:00
Harry Jeffery 6f369cc075 Merge pull request #53 from alekskosiacka/master
don't create chequered bg if its not used
2015-12-10 19:22:54 +00:00
Aleksandra Kosiacka 7d15d1b520 don't create chequered bg if its not used
fixes #40
2015-12-10 19:20:58 +00:00
Harry Jeffery 76e4f48ca9 Merge pull request #52 from alekskosiacka/master
hide mouse on key press
2015-12-10 19:12:58 +00:00
Aleksandra Kosiacka 9b73560f7f hide mouse on key press
fixes #37
2015-12-10 19:10:07 +00:00
Harry Jeffery edad12139b Merge pull request #51 from eXeC64/imv_reload
Add support for reloading files
2015-12-10 17:56:25 +00:00
Jose Diez 8684b7654d Add support for reloading files
Closes #8.
2015-12-10 16:59:08 +00:00
Harry Jeffery c2871c5323 Tell gcc to be pedantic 2015-12-10 15:55:29 +00:00
Harry Jeffery c73baf2e86 Move text rendering into a util function 2015-12-10 15:53:43 +00:00
Harry Jeffery 3e1523d6a7 Make imv_loader_get_image more informative 2015-12-10 15:26:01 +00:00
Harry Jeffery 6cd76000aa Clean up redraw logic 2015-12-10 15:16:13 +00:00
Harry Jeffery c083cc66fc Merge pull request #50 from alekskosiacka/master
fix images not resizing when toggling fullscreen mode
2015-12-10 14:24:21 +00:00
Aleksandra Kosiacka 76da412075 fix images not resizing when toggling fullscreen mode
fixes #31
2015-12-10 14:20:17 +00:00
Harry Jeffery 2153397c8e Merge pull request #49 from alekskosiacka/master
add -l option for listing all open images on exit
2015-12-10 14:09:03 +00:00
Aleksandra Kosiacka a08087af7a add -l option for listing all open images on exit
fixes #43
2015-12-10 14:02:47 +00:00
Harry Jeffery 40003f9a45 Add -t synopsis to manpage 2015-12-09 12:44:30 +00:00
Harry Jeffery 224f609318 Merge pull request #47 from whatevsz/slideshow
Add slideshow option.
2015-12-09 12:43:45 +00:00
Hannes Koerber 0dd3f6b104 Add slideshow option. 2015-12-09 10:50:16 +01:00
Harry Jeffery c8f4c755c3 Add testing infrastructure 2015-12-08 16:39:31 +00:00
Harry Jeffery ad1aca588a Refactor imv_navigator interface 2015-12-08 15:43:08 +00:00
Harry Jeffery 9f569a394b Permit falling back to software renderer 2015-12-07 00:59:35 +00:00
Harry Jeffery 71c7ff06d8 Handle null window/renderer gracefully 2015-12-04 22:18:19 +00:00
Harry Jeffery c36ef928e8 Comment main.c more thoroughly 2015-11-30 23:12:48 +00:00
Harry Jeffery 8bc695b889 Document imv_loader's methods 2015-11-30 22:50:01 +00:00
Harry Jeffery 2457991e3e Document imv_texture's methods 2015-11-30 22:42:59 +00:00
Harry Jeffery 4444e1f0a6 Document utils 2015-11-30 22:38:55 +00:00
Harry Jeffery 50b94d3bb4 Document imv_viewport's methods 2015-11-30 22:21:53 +00:00
Harry Jeffery 674b9a391d Document imv_navigator's methods 2015-11-30 12:39:30 +00:00
Harry Jeffery 6a2ce5abdb Document pthreads dependency
The linking argument isn't strictly needed, since SDL pulls that in, but
there's no harm in manually specifying it for people reading the
Makefile to see.
2015-11-29 15:24:14 +00:00
Harry Jeffery b979dd6799 Improve cancellation responsiveness 2015-11-28 20:55:39 +00:00
Harry Jeffery d5c493878d Clean up overlays on exit 2015-11-28 20:46:54 +00:00
Harry Jeffery 3b5c777e4b Don't use a possibly NULL current_path 2015-11-28 20:07:20 +00:00
Harry Jeffery 9d8a6eb16d Use correct free function for SDL_Surface 2015-11-28 20:07:09 +00:00
Harry Jeffery bde5bf6aa9 Resume playback on image change 2015-11-28 01:35:19 +00:00
Harry Jeffery c9a12a93fe Remove unused parameter 2015-11-28 01:33:19 +00:00
Harry Jeffery 59addba3db Move utility functions from main.c to util.c 2015-11-28 01:31:52 +00:00
Harry Jeffery a2ce2aebe3 Reintroduce text overlay 2015-11-28 01:26:12 +00:00
Harry Jeffery 9086e63532 Hack image changing logic back into shape 2015-11-28 01:24:40 +00:00
Harry Jeffery d340175910 Improve responsiveness by allowing bg threads to co-exist 2015-11-28 01:18:09 +00:00
Harry Jeffery 3fa5a6a554 Fix memory corruption bug in imv_navigator_remove_path 2015-11-28 01:09:33 +00:00
Harry Jeffery 535676a6e0 Fix pausing 2015-11-28 00:47:48 +00:00