speedie
03a245720e
turns out one of those calls were necessary to prevent image from being
...
scaled down too far, this commit fixes the last commit while preserving
the speed improvement by preventing a call to drawimage() through an X11 event after image size has been changed.
2023-03-08 19:10:48 +01:00
speedie
08b54267ae
remove another unnecessary drawimage() call
2023-03-08 19:00:31 +01:00
speedie
91cc7782f7
greatly speed up image redrawing/resizing by removing unnecessary calls
...
to drawimage() and cleanupimage()
we don't need to call cleanupimage() as it is already called in
cleanup()
we don't need to call drawimage() because X11 events should handle that
for us anyway
2023-03-08 18:58:52 +01:00
speedie
d3ec1b609b
don't allow the image to be scaled up beyond menu width
2023-03-08 18:20:15 +01:00
speedie
6a83ac707e
move image size stuff to a separate function we can call on demand
2023-03-08 17:50:58 +01:00
speedie
3e0bf9cd83
cleanup all gcc warnings
2023-03-06 21:19:12 +01:00
speedie
f2db911334
fix home directory spam, that could've been bad
2023-03-06 20:49:54 +01:00
speedie
5ae0fc4eea
generate cache by default, don't load cache if we're not also generating cache
2023-03-06 20:20:19 +01:00
speedie
c1990916e3
Improve flipimage(); function, enable pango for item, add rtl lang support
...
for items with SGR colors
2023-03-04 19:59:36 +01:00
speedie
80f6c1bbfe
simplify rotate function further
2023-03-04 15:54:47 +01:00
speedie
7803e08417
simplify pointless function, which also fixes defaultimg function
2023-03-04 15:21:43 +01:00
speedie
cc231b8df8
add support for flipping and rotating images
2023-03-04 14:37:14 +01:00
speedie
3d4fc5247a
don't allow scaling too far up/down, also add wip default image size keybind
2023-03-03 21:18:25 +01:00
speedie
fbfdfe2583
Fix toggle keybind
2023-03-02 16:22:59 +01:00
speedie
be9a9b3547
add image toggle int
2023-03-02 14:53:48 +01:00
speedie
2b08cf6a0a
declare functions
2023-03-02 14:05:07 +01:00
speedie
395dc3dfe0
create more functions for image drawing, draw image on resize
2023-03-02 11:58:48 +01:00
speedie
46aa66625e
also move cleanup to a function
2023-03-02 11:46:44 +01:00
speedie
0058267210
move imlib2 calls to a separate function
2023-03-02 11:44:59 +01:00
speedie
4a0df5c1d5
resize window to fit image if necessary
2023-02-28 23:03:35 +01:00
speedie
1ca66919f1
image sizes can now be much, much larger without issue
2023-02-28 22:36:33 +01:00
speedie
e204591cce
move some stuff to libs/ in an effort to clean up
2023-02-26 05:13:40 +01:00