Bert Münnich
6d1e00627b
Do not limit fit-to-win to smallest zoom level
Related to issue #303
vor 7 Jahren
Bert Münnich
727939b3e6
Make zoomdiff compare impact on image dimensions
Before that zoomdiff was a merely heuristic.
Related to issue #303
vor 7 Jahren
Bert Münnich
4c294011a9
Use float for ox/oy compare values
Fixes issue #302
vor 7 Jahren
Bert Münnich
f02661879f
Reject text files resembling TGA images
Fixes issue #295
The imlib2 TGA loader returns an imlib image handle without any actual data
when given a text file like this:
T
Content-Type: application/javascript
Content-Length: 3836
Last-Modified: Wed, 23 Sep 2015 12:25:47 GMT
Etag: "56029a4b-efc"
Expires: Sat, 20 Aug 2016 15:14:33 GMT
Cache-Control: max-age=604800, public
Accept-Ranges: bytes
Fortunately, `imlib_image_get_data()` returns NULL in this case, so that we can
use it as an additional check when opening files.
vor 7 Jahren
Bert Münnich
148026007c
One header file for type definitions and function declarations
vor 7 Jahren
Bert Münnich
a5403178e3
Zoom into mouse cursor position
vor 7 Jahren
Bert Münnich
e310136e02
Mouse drag translates pointer position to image area
This makes mouse panning more direct and faster.
vor 7 Jahren
jcalve
ec545a6b6c
Make pan fraction configurable
vor 7 Jahren
Don Hejna
27bbaab976
Support for DELAY as a floating point number including less than 1
second while maintaining backward compatibiitiy with integer
arguments.
vor 8 Jahren
dwminer
2c566c5320
Add -A option to force framerate on animated images
vor 8 Jahren
Bert Münnich
878d97068c
Only open regular files; fixes issue #252
vor 8 Jahren
Bert Münnich
c280129cef
Use Xft for font loading and text drawing
vor 8 Jahren
Bert Münnich
4db3029bc6
Fix 32-bit unsigned integer shift
vor 9 Jahren
Bert Münnich
d3a70a285d
Revised error handling
- Functions warn() and die() replaced by GNU-like error(3) function
- Register cleanup() with atexit(3)
- Functions called by cleanup() are marked with CLEANUP and are not allowed to
call exit(3)
vor 9 Jahren
Bert Münnich
851e4288c1
Prefix safe allocation functions with 'e' instead of 's_'
vor 9 Jahren
Bert Münnich
e574a6d0dd
Removed feature test macro definitions from source files
vor 9 Jahren
Bert Münnich
e0e96977b3
Removed overcautious parameter checks
vor 9 Jahren
Bert Münnich
01ed483b50
Round integer cast of image offset during rendering; fixes issue #197
vor 10 Jahren
Bert Münnich
47e6cd0669
Apply gamma value on thumbnails too; fixes issue #193
vor 10 Jahren
Bert Münnich
9b9294bae6
Use bit-field for boolean flags in fileinfo struct
vor 10 Jahren
Bert Münnich
93e2a757d4
Do not print could-not-open-warnings for files found by directory traversal
vor 10 Jahren
Bert Münnich
2fbc21a205
Simplified img_frame_animate
vor 10 Jahren
Bert Münnich
bb6721549b
Overhauled window drawing, yet again; fixes issue #155
- Buffer for window content is bigger than the window, minimizes artifacts
when window is resized
- Back to using XSetWindowBackgroundPixmap() instead of XCopyArea(),
no need to handle exposure events; X server can show gray background directly
after resize event before sxiv redraws the window contents
vor 10 Jahren
Bert Münnich
5e481912ec
Revised handling of GIF animations
- New option `-a`: Play animations at startup
- Ctrl-Space toggles animation for all GIF files
- Infinite loop for all animations
vor 10 Jahren
Bert Münnich
9c92de8584
Added support for multiple commands per key/button mapping; elegant fix for issue #150
vor 10 Jahren
Bert Münnich
d26f39914e
Use thumbnails in EXIF tags; requirement for libexif is back
vor 10 Jahren
Bartłomiej Piotrowski
b901236261
Fix build with giflib >= 5.1.0.
vor 10 Jahren
Bert Münnich
e685859a30
Use a checkerboard background for alpha layer; fixes issue #138
vor 10 Jahren
Bert Münnich
d049391916
Check for background image allocation failure
vor 11 Jahren
Bert Münnich
4fde8c8cbc
Use separate background image for alpha layer; fixes issue #132
vor 11 Jahren
Bert Münnich
43a04c4757
Revised scale mode and zoom level handling
- Scale mode is not reset to default value upon image loading anymore
- New default key binding to change mode to scale-down
- Removed scale mode setting from config.h
- Removed -d command line option, as this is now the default at startup
vor 11 Jahren
Bert Münnich
eb82519a80
Preserve panning when switching images; fixes issue #131
vor 11 Jahren
Bert Münnich
002c7e550b
Second take at rotating & flipping multi-frame images; fixes issue #121
vor 11 Jahren
Bert Münnich
48700aa6c8
Revert "Apply flip & rotation on all frames of a multi-frame image; fixes issue #121"
This reverts commit f795273b65
.
vor 11 Jahren
Bert Münnich
f795273b65
Apply flip & rotation on all frames of a multi-frame image; fixes issue #121
vor 11 Jahren
Bert Münnich
6a0fa2507c
Slideshow mode is back, in a simplified version
vor 11 Jahren
Bert Münnich
ab28c9a8b9
Refactored remote changes
vor 11 Jahren
Aleksander Nitecki
078136d217
Read GIF's repeat information from file.
vor 11 Jahren
Bert Münnich
99dfd14919
Fixed Imlib file handle type, issue #117
vor 11 Jahren
Bert Münnich
ac2a6ff040
Correct out-of-range gamma values given on command line
vor 11 Jahren
Bert Münnich
50f9ad14de
Refactored remote changes
vor 11 Jahren
András Mohari
0353e6eea2
Add support for changing the gamma value
vor 11 Jahren
Bert Münnich
26a624a543
Added options for anti-alias & alpha layer coloring to config.def.h
Also removed now obsolete -p command line option; fixes issue #98
vor 11 Jahren
Bert Münnich
56142bd3ba
Refactored merged rotation code
vor 11 Jahren
Bastien Dejean
7e51c35801
Handle 180 degrees image rotation
vor 11 Jahren
Bert Münnich
b1a24cb018
Fixed build for giflib version >= 5.0; fixed issue #90
vor 11 Jahren
Bert Münnich
08ae25da22
Refactored function definitions to use dangling brace
vor 12 Jahren
Bert Münnich
6d3bbc6d5e
Updated/corrected license header
vor 12 Jahren
Bert Münnich
eea8b7a98d
Fixed compilation with giflib version 4.2.1
vor 12 Jahren
Bert Münnich
97a2c05cc3
Fixed issue #74 , conditional compilation of gif support
vor 12 Jahren