Commit Graph

719 Commits

Author SHA1 Message Date
Kim Woelders 4edfe21515 Fix incorrect event loop causing 100% load until an X event is received.
SVN revision: 35901
2008-09-09 20:11:35 +00:00
Kim Woelders ad29accb17 xpm loader fix (Marcus Meissner, ticket 28).
SVN revision: 35900
2008-09-09 19:00:32 +00:00
Kim Woelders cb588739ae pnm loader fix (Marcus Meissner, ticket 25).
SVN revision: 35796
2008-09-02 18:43:25 +00:00
Kim Woelders 7c8d8a5b1e Return value is not a pointer.
SVN revision: 35464
2008-08-13 17:56:08 +00:00
Kim Woelders cd929604a1 Introduce imlib_context_disconnect_display().
imlib_context_disconnect_display() should be called when a display
connection is closed but the application continues using imlib2 with a
different display connection.
This is required to avoid to attempt to free cached GCs (in
__imlib_RenderImage) after the associated display connection has been
closed.
It is not unlikely that similar cleanups should be performed elsewhere
in this situation, but the __imlib_RenderImage GCs is the only case I
have found to cause trouble so far.


SVN revision: 35463
2008-08-13 17:55:16 +00:00
Kim Woelders 18a8e18546 Loader fixes based on patch from Hans de Goede/Fedora.
Fix off by one error in check (tga loader).


SVN revision: 34855
2008-06-18 20:45:41 +00:00
Kim Woelders 00d4d6489b Oops - correction.
SVN revision: 34854
2008-06-18 18:54:08 +00:00
Kim Woelders 78037c5c76 Various loader fixes (Marcus Meissner, bug 494).
SVN revision: 34853
2008-06-18 17:52:38 +00:00
Mike Frysinger a6fa566a3d fix from Hans de Goede to look for /usr/share/X11/rgb.txt as most modern systems are using now
SVN revision: 34819
2008-06-13 22:39:27 +00:00
Kim Woelders aa033943a6 Add support for TrueType Collections (suggested by Arne Goetje, bug 487).
The font specifier format is now "font_name[:faceidx]/size" where
faceidx is an optional face index.


SVN revision: 34721
2008-06-01 21:34:26 +00:00
Carsten Haitzler 48995a4b5a 2 possible security vulns fixed. should probably release new version with
these.


SVN revision: 34682
2008-05-27 14:35:17 +00:00
Vincent Torri 7378e6d6a7 * improve autotools stuff
* move libtool versioning from src/bin/Makefile.am to configure.in
 * formatting


SVN revision: 34563
2008-05-14 05:36:23 +00:00
Kim Woelders 6ef5136bf9 Map after resize to avoid initial placement silliness.
SVN revision: 34527
2008-05-10 20:27:28 +00:00
Kim Woelders 86ed6a65a3 Fix HSV color conversion so it matches the API documentation (Dariusz Knocinski).
SVN revision: 34525
2008-05-10 16:40:42 +00:00
Kim Woelders d1b62b240c Fix destination image loading in __imlib_BlendImageToImage() (Victor Paesa - bug 480).
SVN revision: 34515
2008-05-09 17:45:55 +00:00
Kim Woelders 1657ce6e1c Fix destination image loading in __imlib_BlendImageToImageSkewed() (Victor Paesa - bug 479).
SVN revision: 34514
2008-05-09 17:45:35 +00:00
Kim Woelders 3c8de2fbef Remove incorrect test in __imlib_copy_alpha_data() (Victor Paesa - bug 475).
SVN revision: 34504
2008-05-07 21:41:44 +00:00
Kim Woelders 8571e8798c Fix destination image loading in imlib_image_copy_alpha_to_image() (Victor Paesa - bug 474).
SVN revision: 34503
2008-05-07 21:38:39 +00:00
Michael Jennings 31e68f83f4 Mon Mar 10 22:38:16 2008 Michael Jennings (mej)
Do not use PKG_CHECK_EXISTS.
----------------------------------------------------------------------


SVN revision: 33982
2008-03-11 05:38:05 +00:00
Kim Woelders 372249e5a5 Remove restriction to 8 bits per sample (suggested by David A. Gatwood, bug 374).
Set stopOnError (seems like the proper thing to do?).


SVN revision: 33676
2008-02-04 19:38:53 +00:00
Kim Woelders c6478dd2df Indent.
SVN revision: 33675
2008-02-04 19:37:46 +00:00
Kim Woelders b2837013af Oops - missed one (malloc check).
SVN revision: 33364
2008-01-06 15:07:47 +00:00
Kim Woelders 8be6d59395 Handle some out-of-memory situations without crashing.
SVN revision: 33358
2008-01-06 13:57:26 +00:00
Kim Woelders 1a2f46814c Push initial ctxt - continued, wasn't done everywhere.
SVN revision: 33357
2008-01-06 13:57:09 +00:00
Carsten Haitzler 911e8a2f5c push initial ctxt too
SVN revision: 32645
2007-11-13 03:47:22 +00:00
Sebastian Dransfeld 9e61bcd77e Use pkg-config to check for png
SVN revision: 32452
2007-11-07 20:23:20 +00:00
Sebastian Dransfeld a50ee1d8c4 Fix signed warning.
SVN revision: 32341
2007-11-04 09:47:53 +00:00
Carsten Haitzler aa4b88d5a9 different png loading to fix png greyscale loads
SVN revision: 31487
2007-08-25 02:33:51 +00:00
Carsten Haitzler a4addf17e8 round as a #define - and xpm loader has extra rgb.txt sourc
SVN revision: 31485
2007-08-25 02:07:08 +00:00
Kim Woelders 1d74ab1d33 Mark some (new) functions deprecated as they are likely to be removed (see bug 118).
Change some names to match coding style a bit more.


SVN revision: 31021
2007-07-27 18:46:11 +00:00
Kim Woelders 275d89b1d9 Indent, rewrap long comment lines.
SVN revision: 31018
2007-07-27 17:26:58 +00:00
Carsten Haitzler b9c591d390 font chaining patch
SVN revision: 30940
2007-07-23 14:27:44 +00:00
Carsten Haitzler c8f22c965e various patches from the devel mailing list in - and fixed where needed.
SVN revision: 30818
2007-07-15 08:28:11 +00:00
Carsten Haitzler 90102c17f7 patches for imlib2 and e.
SVN revision: 30157
2007-05-30 14:35:26 +00:00
Kim Woelders 46caef98e5 Indent C files.
SVN revision: 30046
2007-05-20 13:26:25 +00:00
Kim Woelders 00767dd69e Make code indentable.
SVN revision: 30044
2007-05-20 12:49:43 +00:00
Kim Woelders 90b72d509a Back out fontset patch.
SVN revision: 30034
2007-05-19 18:32:34 +00:00
Carsten Haitzler 82e00e2412 fontset patch from winfred
SVN revision: 29880
2007-05-06 13:54:43 +00:00
Carsten Haitzler f30c5145f7 up to 1.4.0 ...
SVN revision: 29879
2007-05-06 13:44:57 +00:00
Kim Woelders 5d28b4ba22 Add option to build with visibility=hidden + associated fixups.
SVN revision: 29454
2007-04-09 12:55:29 +00:00
Nathan Ingersoll 69380b3217 Protect against segfaults if XImage allocation fails.
Return usable status to the API caller so it can handle the error condition.


SVN revision: 28368
2007-02-15 04:15:03 +00:00
Mike Frysinger c5cfb22b4a cleanup and simplify ... this should also fix the preprocessor paste error seen on x86
SVN revision: 27943
2007-01-13 05:39:06 +00:00
Carsten Haitzler f0e51f6488 line patch for imlib2 from john williams.
SVN revision: 27381
2006-12-08 12:56:44 +00:00
Carsten Haitzler 4eed6ec35b fix clip?
SVN revision: 27085
2006-11-13 11:20:00 +00:00
Carsten Haitzler bdc0b127e5 fix width and height checks in case of buffer overflow.
SVN revision: 26953
2006-11-05 04:58:06 +00:00
Carsten Haitzler 9a324b0c23 fix possible overflow in tga loader
SVN revision: 26949
2006-11-04 17:43:44 +00:00
Kim Woelders 1a9bf6c065 In imlib_render_pixmaps_for_whole_image() and imlib_render_pixmaps_for_whole_image_at_size()
don't complain about NULL mask_return. A NULL mask_return is handled appropriately down
the line and simply suppresses rendering of a mask.


SVN revision: 26714
2006-10-20 18:21:24 +00:00
Kim Woelders 32bb37dfbf Fix major memory leak in xpm loader.
SVN revision: 26713
2006-10-20 18:03:15 +00:00
Carsten Haitzler 2b3acfd6be asparagus - forgot to commit
SVN revision: 26230
2006-09-30 08:15:33 +00:00
Sebastian Dransfeld 92b5b4e7b8 EAPI
SVN revision: 25527
2006-09-06 07:40:33 +00:00
Sebastian Dransfeld f393a78080 Remove unused variables.
SVN revision: 25517
2006-09-06 07:09:05 +00:00
Kim Woelders 42836e3de1 Enable setting alpha threshold used when rendering masks (was fixed 128).
SVN revision: 25500
2006-09-05 18:50:35 +00:00
Carsten Haitzler 96ba0f2f8c if u run out of memory - actually free stuff
SVN revision: 22948
2006-05-28 00:05:50 +00:00
Kim Woelders fbef280324 Fix pixmap and gc caching when rendering to drawables with different depths.
SVN revision: 22769
2006-05-20 13:59:01 +00:00
Kim Woelders 0819b731e5 Enable grabbing of ARGB drawables.
SVN revision: 22768
2006-05-20 10:43:49 +00:00
Kim Woelders 06dd919ac6 Remove effectively unused actual_depth variable.
SVN revision: 22721
2006-05-18 21:37:45 +00:00
Kim Woelders 42d0f19674 Add some options:
-id <drawable> to grab other than root window.
 -w/width       set output image width.
 -h/height      set output image height.
 -noshape       do not use window shape.
 -help          show usage.
 -v             show info about the grabbed drawable.


SVN revision: 22718
2006-05-18 20:59:17 +00:00
Kim Woelders 7f1bc6088f imlib_copy_drawable_to_image() and
imlib_create_image_from_drawable():
- When mask is set to (Pixmap)1 (and the context drawable is a window)
  the window shape is used for image alpha.

imlib_create_image_from_drawable() and
imlib_create_scaled_image_from_drawable():
- Set image F_HAS_ALPHA alpha flag according to whether or not useful image
  alpha data was generated.


SVN revision: 22712
2006-05-18 19:23:26 +00:00
Kim Woelders b09023b6da Trivial warning fixes.
SVN revision: 22706
2006-05-18 17:36:08 +00:00
Kim Woelders 81c3539440 Patch from Dmitry Antipov:
- Visibility hiding
- Move common asm macros to asm.h
- Fix some typos.


SVN revision: 21974
2006-04-09 08:12:51 +00:00
Kim Woelders 4c91decfa6 libImlib2.so minor number should have been bumped. Bad raster :)
SVN revision: 21973
2006-04-09 07:52:48 +00:00
Carsten Haitzler 100ee8171d bmp fixes
SVN revision: 21477
2006-03-22 02:08:39 +00:00
Carsten Haitzler 8e83a0d122 fix bmp loader advances
SVN revision: 21401
2006-03-19 08:46:16 +00:00
Carsten Haitzler 24e59934fd fix tiff off-by-1 pixel
SVN revision: 21346
2006-03-17 08:47:39 +00:00
Mike Frysinger d149aa86d7 move imlib_hash_size up in the code so we dont have to declare a prototype for internal usage
SVN revision: 20373
2006-02-10 00:01:30 +00:00
Mike Frysinger 2d22b66a4f only declare do_mmx when it is needed
SVN revision: 20372
2006-02-10 00:01:05 +00:00
Kim Woelders 8c6ebda014 Fix colormap when grabbing 8 bit depth pixmaps.
SVN revision: 19759
2006-01-13 21:27:36 +00:00
Horms 039bd7322a fix typos
SVN revision: 19602
2006-01-07 11:30:44 +00:00
Carsten Haitzler 22c2bc2b86 tiff patch - simon
SVN revision: 19561
2006-01-06 15:39:46 +00:00
Kim Woelders c26ccebd9d Another attempt to fix rendering of certain(?) fonts.
SVN revision: 19439
2005-12-31 00:58:44 +00:00
Mike Frysinger 82672fb641 fix whitespace
SVN revision: 19401
2005-12-30 02:50:09 +00:00
Kim Woelders a7074466ac Avoid useless graphics exposure events from imlib_create_scaled_image_from_drawable().
SVN revision: 19324
2005-12-27 22:36:25 +00:00
Carsten Haitzler 7271130b0d oops - typo. fix. works now.
SVN revision: 18760
2005-12-01 07:51:51 +00:00
Carsten Haitzler 3a8121b9b4 tiff loader fix
SVN revision: 18759
2005-12-01 07:46:07 +00:00
Carsten Haitzler 421e1ec39c bmp loader in cvs
SVN revision: 18753
2005-12-01 06:44:40 +00:00
Carsten Haitzler 7f9c764c88 movdqa -> movdqu where appropriate
SVN revision: 18391
2005-11-09 02:51:50 +00:00
Sebastian Dransfeld 6444410b65 Build fix.
SVN revision: 18276
2005-11-04 09:43:45 +00:00
Sebastian Dransfeld 6d5932b7a3 Remove excessive strlen usage.
SVN revision: 18272
2005-11-04 08:45:38 +00:00
Carsten Haitzler 5a9a40ace5 imlib2 cross-endianess fix from Geoffrey Giesemann
SVN revision: 17454
2005-10-12 03:17:46 +00:00
Mike Frysinger b815e2e588 as pointed out by Quan, we need asm_loadimmq.S in EXTRA_DIST
SVN revision: 17221
2005-10-06 02:17:32 +00:00
Mike Frysinger bba703ec24 only use GNU stack markings when generating ELF objects
SVN revision: 17180
2005-10-04 22:54:43 +00:00
Mike Frysinger 7947be0a6c asm_loadimmq.S is included by other files, it isnt supposed to be compiled by itself
SVN revision: 17179
2005-10-04 22:53:39 +00:00
Mike Frysinger 93fd48c324 add a new helper macro by Tres Melton: IS_ALIGNED_128
SVN revision: 17059
2005-09-29 07:50:29 +00:00
Mike Frysinger 3ed18e218c fix by Tres Melton to address 64bit errors: dont cast pointers as ints, cast them as longs
SVN revision: 17058
2005-09-29 07:47:29 +00:00
Sebastian Dransfeld 2140e15060 Remove unused variables.
Remove signedness warning.
Print pointers with %p


SVN revision: 16812
2005-09-20 17:28:23 +00:00
Sebastian Dransfeld d2a2a097ac Remove unused variables.
SVN revision: 16811
2005-09-20 17:22:48 +00:00
Sebastian Dransfeld c9dc33fa66 Add paranthesis to clean up.
SVN revision: 16810
2005-09-20 17:22:04 +00:00
Sebastian Dransfeld 522a9027b5 MIN and MAX is defined in common.h
SVN revision: 16803
2005-09-20 16:56:42 +00:00
Carsten Haitzler d2d484c968 include math! and stuff.
SVN revision: 16783
2005-09-20 08:49:24 +00:00
Sebastian Dransfeld 5bb40fcccc Check for .dll extension on cygwin
SVN revision: 16539
2005-09-04 20:22:19 +00:00
Sebastian Dransfeld 8d3851841b * Add X headers if needed
* Formatting


SVN revision: 16531
2005-09-04 19:05:21 +00:00
Mike Frysinger ef4bd4201b fix for cygwin building (and anyone else who doesnt define RTLD_LOCAL)
SVN revision: 16498
2005-09-03 20:58:14 +00:00
Sebastian Dransfeld 82859c8c12 Silence.
SVN revision: 16312
2005-08-24 16:06:18 +00:00
Sebastian Dransfeld 8cecab18c0 Add asm_loadimmq.S to dist.
SVN revision: 16299
2005-08-23 16:20:42 +00:00
Carsten Haitzler e814b06bed amd64 alignment fix
SVN revision: 16275
2005-08-22 11:06:35 +00:00
R.Ramkumar 5605dc44dd Removed some compiler warnings issued by gcc-4.0.1 on issues
of signedness in comparison.


SVN revision: 16273
2005-08-22 09:55:18 +00:00
Mike Frysinger 090859e58f fix typo in IMMQ cleanup count as pointed out by Peter Beutner in Gentoo Bug 102519
SVN revision: 16226
2005-08-17 22:42:55 +00:00
Kim Woelders 4c448e9949 1) Quit silently if file doesn't exist.
2) Don't close if open failed (fixes segv).


SVN revision: 16107
2005-08-11 18:00:40 +00:00
Mike Frysinger 0c54b9a911 ignore amd64 objects
SVN revision: 16090
2005-08-10 05:11:02 +00:00
Mike Frysinger 627e5b86d6 merge PIC-happy code by PaX/Kevin Quinn/me
SVN revision: 16089
2005-08-10 05:10:19 +00:00
Carsten Haitzler cfc76f12ed ramkumar's id3 updates
SVN revision: 16083
2005-08-09 09:11:02 +00:00
Mike Frysinger 90fdea7686 make sure the masks are in the .data section like they should be
SVN revision: 16055
2005-08-07 07:07:24 +00:00
Mike Frysinger 0b9de66079 fixes from the PaX guys to make sure we dont have executable stacks
SVN revision: 16053
2005-08-06 20:30:27 +00:00
Mike Frysinger cfff106860 fix whitespace
SVN revision: 16039
2005-08-05 21:45:56 +00:00
Kim Woelders 9cffb23460 Bad fix - Revert.
SVN revision: 15964
2005-07-30 17:54:02 +00:00
Kim Woelders 58a0cd1668 Quiet.
SVN revision: 15939
2005-07-29 16:41:05 +00:00
Carsten Haitzler 96693d652c expand tmp image
SVN revision: 15936
2005-07-29 02:23:55 +00:00
Carsten Haitzler cf7ddecef8 this SHOULD fix cross-endianness issues (serve and client not same endianess)
...


SVN revision: 15923
2005-07-28 04:15:11 +00:00
Carsten Haitzler 5e1351eeda dont modify alpha if img has no alpha
SVN revision: 15922
2005-07-28 03:25:32 +00:00
Carsten Haitzler 9c63a271b1 fix digikam crash
SVN revision: 15921
2005-07-28 03:10:16 +00:00
Kim Woelders 7c37c8e907 Be quiet if the file is rejected because it doesn't have a .mp3 extension.
SVN revision: 15885
2005-07-24 16:35:17 +00:00
Carsten Haitzler 981bf5b687 1. id3 album cover loader patches
2. i reduced list note memory usage by 20% - shoudl work better with malloc
as ti is now a power of 2 as well
3. optimised evas internals to make use of event freezes to make e17'sw menu
popups a LOT snappier
4. fixed using last member of list nodes - bad - shoudl use api as this is
private stuff really
5. added config profile stuff to e17  u can literally maintain multiple
config profiles and choose which one at any time etc.


SVN revision: 15864
2005-07-22 10:28:11 +00:00
Carsten Haitzler b5c57a8272 aspara!
SVN revision: 15226
2005-06-10 03:59:52 +00:00
Carsten Haitzler 0bcb0033ed xpm segv fix
SVN revision: 14832
2005-05-18 05:27:43 +00:00
Carsten Haitzler f812d109c0 pass make distcheck
SVN revision: 14311
2005-04-23 08:27:00 +00:00
Carsten Haitzler 2bf2708144 John Slaten's amd64 mmx patch
SVN revision: 14207
2005-04-15 07:00:40 +00:00
Carsten Haitzler 155fb31bab amd64 asm patches
SVN revision: 14121
2005-04-09 00:08:58 +00:00
Tilman Sauerbeck bb949f0dad handle bzip2 errors
SVN revision: 13920
2005-03-26 13:13:51 +00:00
Tilman Sauerbeck 604ae99890 fix uncompression for the zlib loader
SVN revision: 13919
2005-03-26 13:05:30 +00:00
Tilman Sauerbeck f47e5e6b09 fix uncompression in bzip2 loader2
SVN revision: 13918
2005-03-26 12:35:59 +00:00
Tilman Sauerbeck 29b2ab1df7 zlib/bz2 loaders, round 2: look for the real loader using a fake filename (original filename with the bz2/gz suffix cut)
SVN revision: 13917
2005-03-26 12:32:07 +00:00
Tilman Sauerbeck 80d218bca7 fixed a fd leak and a bad memory access bug
SVN revision: 13914
2005-03-26 11:46:49 +00:00
Tilman Sauerbeck 8c67d3f039 another bug in the bz2 loader: we need to duplicate the original filename so we don't access free'd memory
SVN revision: 13913
2005-03-26 11:43:06 +00:00
Carsten Haitzler 75e9166ddb no dot!
SVN revision: 13912
2005-03-26 11:30:24 +00:00
Carsten Haitzler cfbca3e1d3 bz2 loader fix. thanks julia!
SVN revision: 13911
2005-03-26 06:48:40 +00:00
Kim Woelders 6600863e0d Fix imlib_create_scaled_image_from_drawable for source_y != 0.
SVN revision: 13567
2005-03-02 21:33:49 +00:00
Carsten Haitzler 5d618bc603 DISPLAY_MISSING define from spanky
SVN revision: 13472
2005-02-23 03:12:04 +00:00
Carsten Haitzler 0edaf1b45a lround -> round
SVN revision: 13471
2005-02-23 03:02:41 +00:00
Carsten Haitzler bdf343e4c4 link modules back to imlib2 in case they are used in a python extension that
dlopens imlib2.so....


SVN revision: 13337
2005-02-13 04:05:03 +00:00
Sytse Wielinga a633482641 Made imlib2's tests and demos open the display correctly.
SVN revision: 13133
2005-01-29 20:57:54 +00:00
Sytse Wielinga 20d8416051 A lot of moving around in imlib2{,loaders} caused lots of unignored files
SVN revision: 13131
2005-01-29 18:26:35 +00:00
Michael Jennings edc0d92d5b Fri Jan 21 00:57:08 2005 Michael Jennings (mej)
I'm sick of seeing this crap. :P
----------------------------------------------------------------------


SVN revision: 13039
2005-01-21 04:53:15 +00:00
Michael Jennings 7720c15f5f Sun Jan 16 14:27:18 2005 Michael Jennings (mej)
raster is the new Minister of Redundancy Minister.  Thanks to
D. Hageman <dhageman@dracken.com>.
----------------------------------------------------------------------


SVN revision: 12992
2005-01-16 18:23:47 +00:00
Carsten Haitzler 2960b58af9 dont double guess unicode.. just let it be raw
SVN revision: 12973
2005-01-15 07:55:55 +00:00
Carsten Haitzler 054f56166a make hsv reversible
SVN revision: 12821
2005-01-08 07:55:42 +00:00
Carsten Haitzler 7227d27988 bmp patch
SVN revision: 12804
2005-01-07 00:43:34 +00:00
Michael Jennings ac4750e3d9 Ssssh!
SVN revision: 12740
2005-01-04 14:47:04 +00:00
Carsten Haitzler 56f15130a6 no more segv/buffer overflow
SVN revision: 12725
2005-01-04 03:34:03 +00:00
Carsten Haitzler 3c9fe83e51 progname... :)
SVN revision: 12675
2005-01-02 02:37:23 +00:00
Carsten Haitzler 3757b78e21 ditch x headers from those loaders
SVN revision: 12609
2004-12-27 21:05:32 +00:00
Carsten Haitzler 80dbacaa5b no x headers.
SVN revision: 12462
2004-12-14 03:55:42 +00:00
Carsten Haitzler 4c4b843194 we dont need no steenking x headers in the loaders
SVN revision: 12461
2004-12-14 03:50:46 +00:00
Tilman Sauerbeck fd7e6bcbc1 always print an error message if an image cannot be opened
SVN revision: 12237
2004-11-21 17:35:22 +00:00
Carsten Haitzler 5f7bd7cb09 oosp accidentally put this in. damn!
SVN revision: 12137
2004-11-03 09:57:57 +00:00
Carsten Haitzler af7cffd22b no asflags recurse
SVN revision: 12130
2004-11-02 06:19:52 +00:00
Carsten Haitzler 4bb49ca918 ldflags by bye
SVN revision: 12120
2004-11-02 03:15:13 +00:00
Carsten Haitzler 5886f2a7cd and new much cleaner tree.
SVN revision: 12113
2004-11-01 09:45:31 +00:00
Carsten Haitzler 31660022d0 remooov!
SVN revision: 12112
2004-11-01 09:34:29 +00:00
Carsten Haitzler daf113699b buildie cleanies
SVN revision: 11956
2004-10-22 02:47:54 +00:00
Kim Woelders 84731298ef Fix imlib_create_scaled_image_from_drawable().
SVN revision: 11706
2004-09-23 20:42:18 +00:00
Carsten Haitzler 84ec6d0504 up to 1.1.2 - security fixes, some other fixed, ilbm loader
SVN revision: 11452
2004-08-31 03:32:13 +00:00
Michael Jennings a743c11ebc Wed Aug 25 15:53:59 2004 Michael Jennings (mej)
Never mind.  I did it myself. :)
----------------------------------------------------------------------


SVN revision: 11379
2004-08-25 19:54:59 +00:00
Dan Sinclair f0b34344f9 - documentation fix: the angle is in radians not degrees
SVN revision: 10720
2004-07-07 00:32:35 +00:00
Vincent Torri 4c6dadff3f Doxygen documentation
SVN revision: 10519
2004-06-16 18:02:50 +00:00
Carsten Haitzler 103eb3c2a7 mr gonzales's latest "final" code.
SVN revision: 10512
2004-06-16 06:17:50 +00:00
Carsten Haitzler 5600603ad9 jose's AA rendering patches are in! :)
SVN revision: 10507
2004-06-15 02:36:58 +00:00
Carsten Haitzler 3f3e5f1e3b try using advance metrics
SVN revision: 10479
2004-06-09 09:07:44 +00:00
Carsten Haitzler fdc031b0c0 --without-x works again
SVN revision: 10123
2004-05-08 14:30:32 +00:00
Kim Woelders 5da073fb0b Fix grabbing when source x or y is < 0.
SVN revision: 10054
2004-05-04 22:05:28 +00:00
Carsten Haitzler 7df2d726bb dont return values if void return defined!
SVN revision: 9955
2004-04-28 04:28:01 +00:00
Carsten Haitzler 9c561f7bf5 patches... :)
SVN revision: 9928
2004-04-27 10:15:38 +00:00
Carsten Haitzler 98a4690ec1 kim patchies.. and in authors!@ :)
SVN revision: 9807
2004-04-20 07:11:33 +00:00
Carsten Haitzler 1996be19bd roatate from buffer patch
SVN revision: 9806
2004-04-20 07:04:50 +00:00
Carsten Haitzler 2686809383 imlib2_loaders...
SVN revision: 9775
2004-04-18 08:28:50 +00:00
Carsten Haitzler 88033d3aed distipoos
SVN revision: 9749
2004-04-16 05:15:40 +00:00
Carsten Haitzler 38607c4b9f fix distcheck
SVN revision: 9733
2004-04-15 11:54:59 +00:00
Carsten Haitzler 1d6ca99c25 1.1.1
SVN revision: 9728
2004-04-15 05:18:51 +00:00
Carsten Haitzler 144d899456 kwo's patch
SVN revision: 9719
2004-04-14 08:24:25 +00:00
Carsten Haitzler 47df5c8909 actually use cache in 32bpp/24bpp
SVN revision: 9671
2004-04-10 02:26:37 +00:00
Carsten Haitzler 7404d31433 kwo imlib2 patch
SVN revision: 9605
2004-04-05 02:55:29 +00:00
Tilman Sauerbeck e850bf67cc fixed a bunch of warnings. reverted last commit.
SVN revision: 8972
2004-02-15 01:58:24 +00:00
Tilman Sauerbeck f234855e8d DirtyPixmapsForImage() is only available when we build with X
SVN revision: 8971
2004-02-15 01:38:39 +00:00
Tilman Sauerbeck e22d481087 Don't call DirtyPixmapsForImage() twice - it's already called by DirtyImage()
SVN revision: 8970
2004-02-15 01:36:57 +00:00
Tilman Sauerbeck 8caeeb9b99 Imlib2 loaders don't need to ship with both load() _and_ save() anymore
SVN revision: 8930
2004-02-10 18:28:10 +00:00
Tilman Sauerbeck 88e423c058 im->real_file() is set on load, but it will be overwritten when the file is saved. so free the old contents before overwriting it.
SVN revision: 8870
2004-02-07 08:44:35 +00:00
Carsten Haitzler ec9917caeb bugsie! fixed!
SVN revision: 8738
2004-02-01 07:12:14 +00:00
Carsten Haitzler 3ddcfbeb21 build without x.........
SVN revision: 7817
2003-11-07 07:39:32 +00:00
Carsten Haitzler 7ed6182b46 -lm
SVN revision: 7462
2003-09-18 02:33:22 +00:00
Michael Jennings 5f9dcb9d13 Oops. Forgot to nuke that.
SVN revision: 7262
2003-07-30 02:55:46 +00:00
Carsten Haitzler 1c68760158 vrsion -> 1.1.0
SVN revision: 7161
2003-07-13 01:32:02 +00:00
Michael Jennings be6f2d57cb Gah! New files. :P
SVN revision: 7159
2003-07-13 01:23:29 +00:00
Michael Jennings 7c65468d34 Sat Jul 12 21:06:14 EDT 2003
(KainX)

Patch from Yuri Hudobin <glassy_ape@users.sourceforge.net>
for Freetype2 support.


SVN revision: 7158
2003-07-13 01:09:17 +00:00
Azundris 0896467998 nominal fix for memory leak in font.c (freetype1 font handling), just so
we're in a defined state before switching to freetype2.  by azundris and atmos.


SVN revision: 7109
2003-07-02 14:20:59 +00:00
Michael Jennings 103226eb98 Thu Apr 3 14:06:53 EST 2003
(KainX)

Rearranged include directory order to make sure
local headers are found before system ones.


SVN revision: 6821
2003-04-03 19:08:17 +00:00
Tom Gilbert 945f1ac75b ->data was getting leaked, as _tidyup() only free()s data for nodes of type
CHAR.


SVN revision: 6508
2002-12-22 15:47:26 +00:00
Tom Gilbert 69b5426e19 memory leak busted - valgrind is great.
SVN revision: 6507
2002-12-22 15:35:56 +00:00
Michael Jennings 3d627bd1f5 Tue Jun 4 23:00:30 2002 Michael Jennings (mej)
Freetype fixes.


SVN revision: 6302
2002-06-05 03:01:14 +00:00
Tom Gilbert b374d48ccc Fix bug in ellipse drawing introduced who knows when by who knows who.
The ellipse code is total shit, but at least now it does what it is supposed
to.

Could someone with the ability do a release at some point? Lots of users
have reported problems with bug.


SVN revision: 6164
2002-04-22 20:24:45 +00:00
Tom Gilbert 900e167c37 A bugfix!
draw_pixel had an inverted test for clipping and so was always calling the
wrong function.

Will this fix ever see the light of day? Who knows?! :)


SVN revision: 6163
2002-04-22 19:19:01 +00:00
Christopher Rosendahl af4984f978 bad bad!
SVN revision: 6108
2002-04-07 20:18:38 +00:00
Corey Donohoe ad51a5ee68 segfault fix from Dave Weston <dtweston@student.math.uwaterloo.ca>
SVN revision: 6069
2002-03-17 02:32:53 +00:00
Michael Jennings acdc25b8d6 Thu Mar 14 19:18:07 2002 Michael Jennings (mej)
Debian rules/control updates from ljlane.


SVN revision: 6065
2002-03-15 00:18:25 +00:00
Carsten Haitzler bc0b69ddc3 ok ok - pass make disctcheck
SVN revision: 5929
2002-02-13 06:28:15 +00:00
Tom Gilbert 83fa7ee55b Fix from Lindholm@aol.com for segvs when tiling images seamlessly (if they
are an odd number of pixels in height).


SVN revision: 5889
2002-02-02 13:14:42 +00:00
Michael Jennings bf8bae5809 Tue Jan 15 15:22:06 EST 2002
(KainX)

Fixed a whole slew of potential buffer overflows, hopefully including
the one recently posted to BUGTRAQ.


SVN revision: 5838
2002-01-15 20:23:53 +00:00
Carsten Haitzler e9cc0986d0 oooops... fix fix :)
SVN revision: 5339
2001-09-07 00:45:23 +00:00
Carsten Haitzler ebb3f680a3 hmmm now why did this break? hmmmm.... err.,.. hmmm
SVN revision: 5313
2001-08-30 03:05:31 +00:00
Franz Marini 02944af5cb Ok, reverting changes for the draw_pixel function. Now Imlib_image_draw_pixel
uses Tom's macro (__imlib_draw_set_point and *_clipped) so it's faster and it
handles clipping, too.
Btw Tom, I choosed not to change the name of the wrap function so that :
1) I don't have to change it in doc/index.html ;)
2) I think it's a little more in line with Imlib_image_draw_line ...

Lightman


SVN revision: 5305
2001-08-29 09:14:32 +00:00
Franz Marini b490abdb4e Ok, just tried to compile Imlib2 under Roswell (RH 7.2 beta) and I discovered that
it installs freetype 2.0.3 , and so freetype.h (for ftype1) is under
/usr/include/freetype1/freetype/freetype.h .
As to not have plp complaining imlib2 can't find freetype under rh 7.2 , I patched
configure to work with roswell.
Lightman


SVN revision: 5304
2001-08-29 09:10:03 +00:00
Franz Marini 830b576dd1 ok, just wrote this little function to do pixel drawing with blending.
In fact, I wrote it just for the Bezier drawing function, but I thought it
could be useful in other cases too.
Have fun, Lightman :)


SVN revision: 5302
2001-08-28 12:50:15 +00:00
Tom Gilbert 3ae994e663 bad logic there tom
SVN revision: 5291
2001-08-26 21:20:02 +00:00
Tom Gilbert c86e7b86ab fixed filled ellipses - note, this isn't the cleanest fix in the world.
set_cliprect(0,0,0,0) is supposed to disable clipping, but the calls in
api.c subtract one from maxx and maxy, so that breaks some of the logic that
checked for the need to clip. This is a temporary fix, but it does work.

That "whether to clip or not" logic needs a rewrite, but I'm real tired.


SVN revision: 5275
2001-08-25 01:01:09 +00:00
Carsten Haitzler 7be07a6635 hmm - fix segv with x font support
SVN revision: 5204
2001-08-18 02:49:42 +00:00
Carsten Haitzler de446b41a3 aha! oops :)
SVN revision: 5186
2001-08-17 00:17:58 +00:00
Carsten Haitzler 1889718e75 ooooh that would leak if we added the same path all the time... which shoudl
be ignored... :)


SVN revision: 5155
2001-08-13 23:24:13 +00:00
Tom Gilbert c0a35f2a2f Expunged all the raw_file stuff and fixed a warning.
SVN revision: 5143
2001-08-13 18:16:03 +00:00
Carsten Haitzler 70d6cef5b3 oops.. free pointers that might be null.. checdk for that first!
SVN revision: 5140
2001-08-13 13:38:19 +00:00
Tom Gilbert d1227e7040 another one
SVN revision: 5138
2001-08-13 08:29:05 +00:00
Carsten Haitzler 7cc89cb9ba oops developer debug info wrong.. fix
SVN revision: 5137
2001-08-13 07:48:12 +00:00
Tom Gilbert f0b1398bbf that doesn't actually do anything different
SVN revision: 5132
2001-08-12 23:19:28 +00:00
Carsten Haitzler fc59b342fa double up modified date checks... incase of colon
SVN revision: 5131
2001-08-12 22:57:19 +00:00
Tom Gilbert 49b98d08de sorry, debugging stuff
SVN revision: 5125
2001-08-12 13:47:39 +00:00
Tom Gilbert ab067f4fc5 This is what I meant.
I have tested:

feh test:image.jpg                                     WORKS
imlib2_view e/data/icons/image/png.db:/icon/clicked    WORKS

I have tested saving with geist too and that works.

The patch is bigger than it would have been because I had to revert some of
raster's attempt. There is more debris left over (unused functions and
params etc) but I won't clean all that out until people have checked out
this and are happy.

I might make something like imlib_get_real_filename available in the public
API. So that apps (like feh) that use stat() that do their own error checking
can also do the right thing, but this is a separate issue and not totally
necessary.


SVN revision: 5122
2001-08-12 13:41:11 +00:00
Carsten Haitzler a3dae08a37 alright - comprimise. theres a imlib_context_set_filename_raw_mode()
call now - if you want to deal with filenames and not have them interpreted
use this and set it to 1.


SVN revision: 5096
2001-08-11 03:33:05 +00:00
Tom Gilbert dd082b7d0b warnings suck
SVN revision: 5095
2001-08-11 00:47:49 +00:00
Carsten Haitzler 0564389a26 virtualize real file and key splitting nicely into image data struct.
now we escpae literal colons with double colons. it's documented too. (this
was easier to do as i also have to do it for ssving files and you cant stat
to see if a file exisit fi you havent saved it yet)


SVN revision: 5080
2001-08-10 08:35:05 +00:00
Carsten Haitzler 94828db44e add a color clearer too
SVN revision: 4762
2001-05-11 07:22:40 +00:00
Carsten Haitzler 05d0572575 in cvs :) clear function :)
SVN revision: 4761
2001-05-11 07:14:47 +00:00
Carsten Haitzler 02a6912ad4 add then :)
SVN revision: 4746
2001-05-09 01:57:02 +00:00
Carsten Haitzler fee04bcdde franz's patches to support other color spaces :)
SVN revision: 4745
2001-05-08 20:29:16 +00:00
Carsten Haitzler c994718676 up to 1.0.3
SVN revision: 4682
2001-04-29 05:58:36 +00:00
Carsten Haitzler 22cdb56e43 oooooooooooooooops
fix fix fix bug bug :)


SVN revision: 4678
2001-04-29 02:55:55 +00:00
Carsten Haitzler 895027d9fe oops - widht & height 1 grad get div by 0 .. fix fix fix :)
SVN revision: 4635
2001-04-16 19:10:58 +00:00
Carsten Haitzler c2e1328e53 carsten's context stack patch... with a default context entry too.. :)
SVN revision: 4572
2001-04-11 19:27:32 +00:00
Michael Jennings d2b05e00e9 Fix error building with dmalloc support.
SVN revision: 4309
2001-03-04 08:40:43 +00:00
Tom Gilbert 4c3d00f262 fix memory leak
SVN revision: 4300
2001-03-03 22:32:16 +00:00
Carsten Haitzler 15263ed166 sorry - debain dir breaks build. removed form configure and makefile... also
up to 1.0.2


SVN revision: 4297
2001-03-02 18:58:47 +00:00
Tom Gilbert 70edd4110f Adam's font fixer-upper patch :)
SVN revision: 4291
2001-02-28 19:48:38 +00:00
Carsten Haitzler 22d04327be adam's patches... :)
SVN revision: 4264
2001-02-20 05:57:53 +00:00
Carsten Haitzler 591a098daa found it!!!! :)
SVN revision: 4242
2001-02-17 22:06:30 +00:00
Carsten Haitzler e486b98e93 and then he found some minor bugs in file examination... and then they were
fixed. :)


SVN revision: 4240
2001-02-17 21:30:18 +00:00
Carsten Haitzler c6fc12fa81 oops - hard coded op - fixed that :)
SVN revision: 4203
2001-02-13 23:47:10 +00:00
Carsten Haitzler 973cac277d fix blend mode for alpha dest when drawing text
SVN revision: 4191
2001-02-12 18:54:35 +00:00
Carsten Haitzler 45ba00f3fd ewwwww - fix infinte loop bug... :)
SVN revision: 4152
2001-01-26 03:29:55 +00:00
Carsten Haitzler 9cc5944b2b errrr?
SVN revision: 4149
2001-01-24 05:06:51 +00:00
Carsten Haitzler 5c591c19dc possible infinite loop in cache code.. fix.
SVN revision: 4146
2001-01-24 01:01:04 +00:00
Platon Fomichev fa3a7dafa1 General cleanup of EMX things
SVN revision: 4139
2001-01-20 11:41:31 +00:00
Carsten Haitzler 40c866239c use 128x128 dither mask for rgb666 (in 8bpp) rendering
SVN revision: 4124
2001-01-18 00:07:01 +00:00
Carsten Haitzler 630afd9b86 minor fixup if last char in string has 0 boundingbox width :)
SVN revision: 4123
2001-01-17 21:31:30 +00:00
Carsten Haitzler 8cb5f5dc04 patch from matt
SVN revision: 4116
2001-01-13 07:40:11 +00:00
Carsten Haitzler d9dedd7ea6 fix minor segv in gradient rendering if your color range has err... no colors
SVN revision: 4112
2001-01-11 22:43:11 +00:00
Carsten Haitzler cea6638e08 * up version to 1.0.1 - will do minor release real soon.
* fix build so loaders build if u have no imlib2 installed
* fix requires and buildrequires in spec file for freetype & edb to be correct


SVN revision: 4105
2001-01-07 22:02:08 +00:00
Carsten Haitzler 157dad2d37 x fonts blend again now.... and colro correctly too :)
SVN revision: 4092
2001-01-04 21:09:52 +00:00
Carsten Haitzler 5c7f536d4a attempt to fix xfd font transparency....... ??? :)
SVN revision: 4090
2001-01-04 01:46:28 +00:00
Carsten Haitzler c061b76b93 errr - clean clean.. fix color pixle caclfor 8bpp and 8bpp non dithered had
a.. er... bug :)


SVN revision: 4073
2001-01-02 23:09:02 +00:00
Carsten Haitzler a8ccf132b8 err commit?
SVN revision: 4048
2000-12-28 03:54:58 +00:00
Carsten Haitzler a3588b2945 oops - fix soem ascent & descent problems
SVN revision: 3994
2000-12-15 00:03:43 +00:00
Carsten Haitzler 571d51a852 masa's internationalization + x font support for imlib2 :)
SVN revision: 3980
2000-12-12 21:07:38 +00:00
Tom Gilbert 975f0b4c65 dunno why there were two of those
SVN revision: 3942
2000-12-02 18:57:46 +00:00
Michael Jennings a33bf8aa22 Fix make distcheck.
SVN revision: 3900
2000-11-17 17:07:47 +00:00
Michael Jennings 7ac858d32d Imlib2 now benefits from the same MMX goop that Eterm has. :)
SVN revision: 3898
2000-11-17 00:37:00 +00:00
Carsten Haitzler 63c17d1769 os/2 fixes :)
SVN revision: 3852
2000-11-11 00:18:58 +00:00
Carsten Haitzler 11e7b0369a bigendianess patch from nathan
SVN revision: 3851
2000-11-11 00:08:11 +00:00
Carsten Haitzler e983a0adbb more paranoid abotu allocating memory with realloc
SVN revision: 3816
2000-11-07 20:12:02 +00:00
Carsten Haitzler 490383f4d7 patch for grabbing form ximage's - plug dont segv when u set the format to
NULL.


SVN revision: 3782
2000-10-29 23:55:04 +00:00
Tom Gilbert ed96b0c6ff SHUT UP!
SVN revision: 3709
2000-10-25 01:48:23 +00:00
Carsten Haitzler 10b12fd3ad off by one may have been causing segv's ? :)
SVN revision: 3588
2000-10-13 04:31:01 +00:00
Carsten Haitzler 1a457d0029 --without-x patch from steve
SVN revision: 3584
2000-10-13 00:11:34 +00:00
Carsten Haitzler 0af7f642be fix a small segv problem with pollies! :)
SVN revision: 3583
2000-10-13 00:06:57 +00:00
Carsten Haitzler 72f81a4c4d no more ellipse segv's :)
SVN revision: 3582
2000-10-12 23:51:58 +00:00
Carsten Haitzler 456a035996 clip rect fix
SVN revision: 3576
2000-10-12 16:50:21 +00:00
Carsten Haitzler 965982c5c0 polygons now........ don't anti-alias anymore.. will be fixed.. BUT
they handle convex, concave, clip and are all happy little poly's


SVN revision: 3573
2000-10-12 00:26:14 +00:00
Tom Gilbert f7701663ce EEeeeeek. Segv.
SVN revision: 3571
2000-10-09 14:49:42 +00:00
Tom Gilbert b634319d94 Better fix.
SVN revision: 3570
2000-10-09 13:37:03 +00:00
Tom Gilbert bc9df479a1 Fix for _polygon_get_bounds.
SVN revision: 3569
2000-10-09 13:32:30 +00:00
Carsten Haitzler 24a1af7ee0 fix masks over network
SVN revision: 3521
2000-09-18 01:34:11 +00:00
Carsten Haitzler f93e8368ae free image? dirty the pixmaps that belong to it and set image pointer to null
SVN revision: 3517
2000-09-17 22:32:24 +00:00
Carsten Haitzler 336cecc801 fix pixmap caching...... :)
SVN revision: 3505
2000-09-17 17:22:55 +00:00
Tom Gilbert 0776d7ff0d not quite there yet
SVN revision: 3504
2000-09-17 13:23:15 +00:00
Carsten Haitzler 65dc01f834 fix that! that aint static! (__imlib_dynamic_filters_init that is)
SVN revision: 3502
2000-09-17 05:07:14 +00:00
Tom Gilbert b9f5dca00f quick warning hunt
SVN revision: 3500
2000-09-17 03:07:45 +00:00
Tom Gilbert 6c80c342a7 nm I fixed it anyway
SVN revision: 3499
2000-09-17 02:26:24 +00:00
Tom Gilbert eebefe5ede Commiting what I have so far. More to do tomorrow, but it's 3am.
Polygons are now filled with antialiasing, if context_antialias is set.

So are ellipses.

I fixed some clipping bugs.

There is a bug with the AA span though, it's just a little one, but I'm too
tired to find it now. You will see it if you look closely at the top of the
filled ellipse in test/imlib2, using xmag or something.

I'll fix that tomorrow, speed things up a bit, and hopefully implement AA
drawing for ellipse outlines. Oh, I'll unroll some more loops too.

raster: your last commit broke the two test apps. a segv in _RGBA_init()
somewhere, I know it's not my new code, as I tried a fresh checkout and it
did the same thing. I don't have time to check it out tonight though.


SVN revision: 3498
2000-09-17 01:57:01 +00:00
Carsten Haitzler 77a68dc413 unrolled span rendering a little more (switch stamement is now just once
per span 0 thats good enough.... :) )


SVN revision: 3491
2000-09-16 18:16:11 +00:00
Tom Gilbert 6cedec71a8 more inlining
SVN revision: 3488
2000-09-16 00:38:10 +00:00
Tom Gilbert 5552e7e064 Use spans and the span list clipper to do filled ellipses too. Much better.
SVN revision: 3485
2000-09-16 00:09:18 +00:00
Carsten Haitzler 227a499f1d no prointf!
SVN revision: 3484
2000-09-15 23:52:21 +00:00
Carsten Haitzler 69c726a9cf handle lower depths :)
SVN revision: 3482
2000-09-15 23:47:27 +00:00
Tom Gilbert 9cef1b4308 Lots of changes. Macro-ised the point_on_segment code.
Implemented a span-list clipper.

Inlined the drawing code for span().

Cleaned up and speeded up a couple of drawing funcs.

Polygons filled much faster now. More to do though.


SVN revision: 3480
2000-09-15 23:22:53 +00:00
Carsten Haitzler 220207d492 666 colorcube rendering works....... :)
SVN revision: 3478
2000-09-15 18:21:08 +00:00
Carsten Haitzler 0acbe99fd1 fix visual picker :)
SVN revision: 3469
2000-09-15 14:34:31 +00:00
Michael Jennings 1051a20dd2 Son of a raster! I think I just found the memory leak. I shall now hide
in shame.  Perhaps giblet should take over Eterm development.


SVN revision: 3466
2000-09-14 19:08:08 +00:00
Carsten Haitzler 35b6638256 add call to get text inset for string
SVN revision: 3453
2000-09-13 17:00:37 +00:00
Carsten Haitzler d7b8c1575b add docs..... and prefix is /usr for rpms damnit! :)
SVN revision: 3450
2000-09-13 16:20:33 +00:00
Carsten Haitzler 2d96eee956 add api call to get text string advances........
SVN revision: 3447
2000-09-13 15:52:53 +00:00
Carsten Haitzler 66095b9573 missing some load data checks for some routines... fix fix fix
SVN revision: 3440
2000-09-13 14:04:47 +00:00
Carsten Haitzler 542cc394f8 ewwwwwwwwwwwwps! scaling blending buggy! fix fix fix fix :) GOTCHA!
SVN revision: 3434
2000-09-13 04:18:39 +00:00
Carsten Haitzler 00aeaf4586 up version number.. tentative for a 1.0 release...
revamp rpm packages completely. split loaders into their own packages
(more logical units). main imlib2 requires the jpeg, png and db laoders
at a  minimum


SVN revision: 3417
2000-09-12 21:11:22 +00:00
Carsten Haitzler 0883f1b746 and enable the fast path again
SVN revision: 3403
2000-09-12 05:46:17 +00:00
Carsten Haitzler 356c4db490 added generic slow-path rendering code
SVN revision: 3402
2000-09-12 05:34:32 +00:00
Carsten Haitzler ee6dba3708 wooo! found bug in filename:key splitting.... fix fix fix... :)
SVN revision: 3371
2000-09-09 19:42:09 +00:00
Tom Gilbert a7557ddc46 final fix for _list_fonts()
SVN revision: 3357
2000-09-08 17:23:07 +00:00
Tom Gilbert 5de8b0f072 Much faster clipped ellipse filling.
SVN revision: 3356
2000-09-08 15:05:38 +00:00
Tom Gilbert cd464e9838 Much faster polygon clipping, made span() more sensible.
Added the function:
unsigned char imlib_polygon_contains_point(ImlibPolygon poly, int x,
                                              int y);

Tells you if a point lies in a polygon. Handy for apps that might want to
test for "selection" of a polygon shape or something...


SVN revision: 3355
2000-09-08 14:47:36 +00:00
Tom Gilbert 20aa346460 tidy up
SVN revision: 3313
2000-09-04 17:02:58 +00:00
Tom Gilbert 82824227fc slight speedup
SVN revision: 3312
2000-09-04 15:56:59 +00:00
Tom Gilbert cdf8e6ed76 killed a rounding error in line clipping
SVN revision: 3308
2000-09-03 22:43:59 +00:00
Tom Gilbert 6a4d800e92 imlib_image_fill_ellipse()
SVN revision: 3306
2000-09-03 19:31:03 +00:00
Tom Gilbert e3d927d32c Better API, simpler polygon struct. imlib_polygon_new() now, no type member.
Then _draw_polygon(polygon, unsigned int closed), and _fill_polygon(poly).


SVN revision: 3305
2000-09-03 19:14:02 +00:00
Tom Gilbert 222e1b5f32 Polygon filling. Right now only works for convex polygons. Works with a
clipping rect, but highly suboptimally (I'm not doing proper polygon
clipping here yet, just clipping slowly on each point drawn - really nasty).

There are probably some rounding errors in here. I need to work more on
this, but I have *so* little time for the next few weeks.

Please don't kill me for this code. It's not finished, but I'm about to move
house, and I have to get something working before I pack my PC away.


SVN revision: 3303
2000-09-03 18:04:00 +00:00