Commit Graph

54 Commits

Author SHA1 Message Date
Kim Woelders b7c18a9c12 Change EXGetGeometry() to EXGetSize()
Only w and h are ever used.

Also remove now unnecessary initializations of returned values.
2021-08-14 16:55:24 +02:00
Kim Woelders 13c4b29a98 Fix EImageDefineCursor() for window mode
Use RROOT, not VROOT.
EImageDefineCursor() is used by the restart cursor code, and in window
mode VROOT is destroyed during restart.

Also correct comment.
2021-07-20 20:53:16 +02:00
Kim Woelders 9d678fc554 Fix handling of imageclasses with flipped/rotated images
Each modified image needs its own file to avoid getting in trouble with
pixmap caching.

The trouble in question was only seen if misc.memory_paranoia was set
to 0 (is 1 by default).
2021-03-06 21:02:10 +01:00
Kim Woelders 99c7523b07 Forgot some 2020 2020-12-29 16:23:17 +01:00
Kim Woelders faf6393a8b Introduce EImageDefineCursor() 2020-12-11 17:57:13 +01:00
Kim Woelders 26252064fe Introduce EImageRenderOnDrawableARGB() 2020-12-11 17:57:13 +01:00
Kim Woelders 02568bb00c Remove obsolete color modifier functions
Unused since the pseudotransparency stuff was removed.
2020-12-11 17:56:55 +01:00
Kim Woelders 3e5398789b Add some image cache control
Most of this requires imlib2-1.5.0.

- Enable showing setup and usage.
- Store regular image cache size in configuration.
- Add control for XImage cache item count.
2018-02-22 07:36:36 +01:00
Kim Woelders 3ab0c509d2 Print messages for problematic borders (if EDEBUG 1) 2018-02-09 18:16:34 +01:00
Kim Woelders e23ddddb9f Fix EDrawableDumpImage()
Same issue as previous commit when grabbing windows.
2017-12-17 06:39:04 +01:00
Kim Woelders 4b319d794b Wrap some calls to XRenderCreatePicture(). 2015-01-25 00:05:10 +01:00
Kim Woelders 9c31fe29ed Clean up header file inclusion order.
Fixes building with e.g. -std=c99 and c11 by always including config.h
(which defines _GNU_SOURCE) first.
2015-01-17 19:33:42 +01:00
Kim Woelders a9a568ffe3 Debug printout cleanups. 2014-10-17 21:25:12 +02:00
Kim Woelders 4d1bde02ae Wrap XID and some other X types.
Mostly to change longs to ints to reduce memory footprint a bit on 64
bit systems.
2014-04-23 19:13:00 +02:00
Kim Woelders b3d41f5229 Fix potential use of freed pixmap. 2014-04-21 11:28:38 +02:00
Kim Woelders e1f062fff5 Use NoXID in stead of None. 2013-12-29 08:59:38 +01:00
Kim Woelders 49669bafa2 Forgot some 2013. 2013-11-24 16:37:17 +01:00
Kim Woelders ccc5560d23 No need for double - change to float. 2013-07-07 23:35:16 +02:00
Kim Woelders 1a62a504e7 Add some missed 2010s.
SVN revision: 53833
2010-10-24 14:33:14 +00:00
Kim Woelders 15ede64ea1 Introduce PmapMaskInit().
SVN revision: 53807
2010-10-23 10:22:52 +00:00
Kim Woelders 288a6c0541 FreePmapMask() -> PmapMaskFree().
SVN revision: 53806
2010-10-23 10:22:50 +00:00
Kim Woelders 93fb484abd Add missed 2009s.
SVN revision: 44039
2009-11-29 10:35:56 +00:00
Kim Woelders bfefc200cd EColor->COLOR32
SVN revision: 42460
2009-09-13 13:45:34 +00:00
Kim Woelders 53e593fd6e Fix build with render but without composite.
SVN revision: 41859
2009-08-18 17:27:08 +00:00
Kim Woelders 69a3b9d29f Avoid crash when showing "watch cursor" during restart in certain situations.
SVN revision: 36088
2008-09-18 17:39:13 +00:00
Kim Woelders 3b7ac3b389 Set anti-alias when scaling tile.
SVN revision: 34880
2008-06-20 17:21:50 +00:00
Kim Woelders fd39d6628a Simplify shape functions.
SVN revision: 34745
2008-06-05 08:55:21 +00:00
Kim Woelders 26f7112636 Remove/comment out unused stuff.
SVN revision: 34533
2008-05-10 23:22:31 +00:00
Kim Woelders b780491887 Rewrap more X stuff.
SVN revision: 34149
2008-03-30 12:13:16 +00:00
Kim Woelders 9577d31aaf Header file tweaks.
SVN revision: 34103
2008-03-24 08:57:50 +00:00
Kim Woelders 2db78bbdfe Optionally use render for scaling.
SVN revision: 33583
2008-01-24 18:37:45 +00:00
Kim Woelders e57f63639c Fix showing tiled external pixmap in pager.
SVN revision: 33490
2008-01-14 21:49:12 +00:00
Kim Woelders 9dff0f6e90 Fix potential segv.
SVN revision: 33360
2008-01-06 14:03:42 +00:00
Kim Woelders d40357d2ec Simplify ImageclassApplySimple and ScaleRect.
SVN revision: 33312
2007-12-30 21:18:04 +00:00
Kim Woelders 4ba1f565fb Introduce EImageApplyToWin.
SVN revision: 33157
2007-12-15 17:10:47 +00:00
Kim Woelders 192fb7acfb EImagePixmapFree->EImagePixmapsFree, add mask argument.
SVN revision: 33156
2007-12-15 16:29:22 +00:00
Kim Woelders ff17e3ab82 Fix build when imlib_context_set_mask_alpha_threshold() is not available (BUGZILLA bug 275).
SVN revision: 32724
2007-11-15 20:10:30 +00:00
Kim Woelders a04d88056c Enable setting imlib2 image cache size (debug only).
SVN revision: 29918
2007-05-07 23:26:13 +00:00
Kim Woelders 08aa444f44 Fix ugly black shadows on icons in transparent iconbox (noted by Atom Smasher).
SVN revision: 29765
2007-04-29 13:13:03 +00:00
Kim Woelders 09cbba40d4 Various anti-alias fixups after recent changes.
SVN revision: 29439
2007-04-07 16:18:53 +00:00
Kim Woelders 799f662fce Use anti-alias only when appropriate.
SVN revision: 29429
2007-04-06 22:20:07 +00:00
Kim Woelders f53600e1e8 Cleanups, enable compiling everything as if it were C++.
SVN revision: 28022
2007-01-17 01:10:44 +00:00
Kim Woelders 83bcbbaee1 2007.
SVN revision: 27952
2007-01-13 19:14:29 +00:00
Kim Woelders 34253bc0c4 Move theme path related stuff out of eimage.c, add function to get image data.
SVN revision: 27623
2006-12-28 17:44:42 +00:00
Kim Woelders 407a3c99cf Tweak.
SVN revision: 27563
2006-12-25 10:21:21 +00:00
Kim Woelders 5e13c9ca36 Set mask alpha threshold, if possible.
SVN revision: 25977
2006-09-19 16:55:16 +00:00
Kim Woelders 79e6f2a3e9 Add live pager update mode (when composite is enabled), take 1.
SVN revision: 25182
2006-08-28 22:46:22 +00:00
Kim Woelders 307afc96bd Trivial cleanups.
SVN revision: 22818
2006-05-21 18:44:18 +00:00
Kim Woelders 12df8f3bb1 More visual propagation stuff.
SVN revision: 22613
2006-05-14 10:59:30 +00:00
Kim Woelders 2220fc9762 Pass Win to image rendering functions (for visual info).
SVN revision: 22583
2006-05-13 13:25:30 +00:00