Commit Graph

434 Commits

Author SHA1 Message Date
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
Carsten Haitzler f640137020 get rid of comment
SVN revision: 3297
2000-09-02 07:28:16 +00:00
Carsten Haitzler 6fe8ee962f foudn bug in mmx asm blending.. 1 line hihg blends get skipped.. fix! :)
(ugly fix tho)


SVN revision: 3296
2000-09-02 07:27:50 +00:00
Tom Gilbert 0794fb0f14 imlib_image_draw_ellipse()
Check test/imlib2 for example. Clipped too.

TODO: Not antialiased. yet. point drawing needs to be inlined, or something.


SVN revision: 3287
2000-08-31 22:49:06 +00:00
Carsten Haitzler 1250f13969 possible crash fixed
SVN revision: 3286
2000-08-31 19:02:37 +00:00
Tom Gilbert c46b591e82 Added function to calculate bounds of a polygon.
SVN revision: 3280
2000-08-30 21:57:36 +00:00
Tom Gilbert b5ababf0b7 Polygons. Not filled ones yet =P Empty ones are easier ;-)
Hard to come up with a nice API for this, but here's what I have:

ImlibPolygon imlib_polygon_new(int type);
void imlib_polygon_free(ImlibPolygon poly);
void imlib_polygon_add_point(ImlibPolygon poly, int x, int y);
void imlib_image_draw_polygon(ImlibPolygon poly);

Clipping works with these, as demonstrated by test/imlib2

The type paramter may be: POLY_OPEN, POLY_CLOSED or POLY_FILLED (last one
not implemented yet).

I was wondering if draw_polygon should genererate updates, like draw_line.

Thoughts?


SVN revision: 3279
2000-08-30 19:52:57 +00:00
Tom Gilbert cebd7a0c23 Scratch that. Start again.
Removed all the _clipped functions.

Added imlib_context_set_cliprect(int x, int y, int w, int h) and a
corresponding _get_cliprect.

Set width to 0 to disable clipping (default).

Just use the normal _draw_ functions and it'll do the Right thing.


SVN revision: 3278
2000-08-30 18:26:49 +00:00
Tom Gilbert 313c889709 The line clipping function is quite useful, so I made it public.
Sometimes it's handy to work out where your line was/would be drawn.

int
imlib_clip_line(int x0, int y0, int x1, int y1, int xmin, int xmax, int ymin,
                  int ymax, int *clip_x0, int *clip_y0, int *clip_x1,
                  int *clip_y1);


SVN revision: 3277
2000-08-30 16:57:16 +00:00
Tom Gilbert e423fc372d Added rectangle clipping, in the form:
void
imlib_image_draw_rectangle_clipped(int x, int y, int width, int height,
                                   int clip_xmin, int clip_xmax, int clip_ymin,
                                   int clip_ymax);

Works well. If you make install then cd test, make, ./imlib2, you'll see the
demo/test of the clipping code.

Next up: draw_polygon and draw_polygon_clipped.

Then (eeek) fill_polygon, fill_polygon_clipped, and some clipping for image
blending (fun).


SVN revision: 3276
2000-08-30 16:39:44 +00:00
Carsten Haitzler ee1b52edaa noticed there was a set filter but no get.. addded
SVN revision: 3275
2000-08-30 01:34:19 +00:00
Carsten Haitzler 38c520c050 api call was silly - changed it :)
SVN revision: 3274
2000-08-29 22:29:13 +00:00
Tom Gilbert 4f72d15e1e Added line drawing with clipping.
Same as _draw_line but with extra parameters for the clipping region.

Tested and seems to work well. Will check further tomorrow when I convert
geist to use this instead of doing it internally.

Imlib_Updates
imlib_image_draw_line_clipped(int x1, int y1, int x2, int y2,
                 int clip_xmin, int clip_xmax, int clip_ymin,
                 int clip_ymax, char make_updates);


SVN revision: 3273
2000-08-29 21:09:49 +00:00
Michael Jennings f16c92658f Miscellaneous fixes I ran across while doing the colormod stuff. One of
which fixes a seg fault bug.


SVN revision: 3243
2000-08-23 05:02:03 +00:00
Carsten Haitzler b99cd06c87 try that
SVN revision: 3240
2000-08-23 01:18:52 +00:00
Tom Gilbert 37e6364bd0 Urm. oops. hehe :)
Reversed that change, as it caused segfaults in free().

I can't grok this code, so I'll leave it to raster.

Basically, if my code calls imlib_free_image_and_decache(), it doesn't free
the image, and it leaks.

The fix I applied made sure _Imlib_ConsumeImage was called, but this caused
a segfault.

*baffle


SVN revision: 3239
2000-08-23 00:20:24 +00:00
Tom Gilbert 5303cd3cf1 Okay. imlib_free_image_and_decache() was leaking images. I hope I made the
right fix here. Basically, the imlib_free_image_and_decache() call in api.c
sets the flag F_INVALID then calls the internal __ImlibFreeImage(), this
checks if the flag F_UNCACHEABLE is set, and only frees it if so.

So the image never got free()d. I have changed the
imlib_free_image_and_decache() to set the F_UNCACHEABLE flag *as well* as
F_INVALID. I hope that's the correct fix. raster?


SVN revision: 3238
2000-08-23 00:11:39 +00:00
Carsten Haitzler ec7148bb2b fix static gc for multipel servers
SVN revision: 3195
2000-08-20 21:54:21 +00:00
Carsten Haitzler 1896e7b45e add 1 more font routine for getting geometry - useful. you'll need to
update imlib2 too to get evas to compile & work - it uses this routine


SVN revision: 3087
2000-08-10 22:11:40 +00:00
Tom Gilbert 6afed42c4a Don't show duplicates in imlib_list_fonts().
SVN revision: 3079
2000-08-09 19:41:29 +00:00
Tom Gilbert b257c14d76 Fixed imlib_list_fonts()
It was calling stat on filenames without paths, so that was failing.


SVN revision: 3064
2000-08-07 21:39:35 +00:00
Carsten Haitzler c465599b95 fix mem leak in lisitng fonts
SVN revision: 3043
2000-08-06 19:44:05 +00:00
Tom Gilbert 7389e00d31 fix core on imlib_list_fonts()
SVN revision: 3042
2000-08-06 19:41:13 +00:00
Michael Jennings 8d141765c0 Wed Jul 12 22:20:53 PDT 2000
(KainX)

It's generally a good idea to increment the reference count when you
implement reference counting.  This should fix the mysterious problems
people have been having with Imlib2 stealing pixmaps out from under
Eterm.


SVN revision: 2916
2000-07-13 05:04:36 +00:00
Tom Gilbert ce84557641 Willem's rotation patch.
SVN revision: 2889
2000-06-25 18:13:36 +00:00
Carsten Haitzler cee044cabc apparently clone doesnt lone EVERYTHING.. now it clones all of it except
attached data tags...


SVN revision: 2865
2000-06-23 19:34:11 +00:00
Chris Ross 1315abe956 Be quiet.
SVN revision: 2757
2000-06-06 11:00:46 +00:00
Chris Ross f4eaa25fa7 Start of a filter test app, and applied Willem's patch for imlib2. thanks
Willem.


SVN revision: 2731
2000-05-30 22:10:01 +00:00
Chris Ross 28b3445f1a Ok, some more clean ups to the filter stuff, should have some new filters to
play with soon - want to get the stuff correct before I commit some more
stuff. dox is the start of dox2 the document viewer based on imlib2. Designed
so that the style of the docs is seperate from the contents. Will evolve
rapdily over the next week.


SVN revision: 2716
2000-05-28 15:17:38 +00:00
Chris Ross e67e249949 Clean up of code, all macros for filter_param -> real varaible are put in
script.h. Changed filters to reflect this change, and actually plan on writing
some more macors and filters soon.


SVN revision: 2689
2000-05-22 11:41:40 +00:00
Chris Ross bd5836823e * rewrite of the script parser, basically you can now parser a filter as a
variable to another filter as willem requested the other day.
  eg.
    filter( var=anotherfilter( var=13,var=30 ), var=blum );

  youcan have as manylevels of filters as you want.

* parser should be quicker, no need to add "NULL" to the end of a
  imlib_apply_filter() command.

* some more funky filters should be added soon, at 4.45am i decided to leave
  that job till t/m.


SVN revision: 2686
2000-05-22 03:23:03 +00:00
Chris Ross 0a32e88438 Gah, turn off debug mode, and comment out necessary blurb...
SVN revision: 2678
2000-05-21 00:21:58 +00:00
Chris Ross c200ced976 * modifed the script engine, instead of three passes i've nobbled it down to
one, this means the bump_mapped pr0n will now render a coupla degree's faster
 (gilbertt this is for you, and those pictures of pabs' mom)
* Update Imlib2.h and api.c to reflect changes

ps. on the road to the next gen script interpreter


SVN revision: 2677
2000-05-21 00:04:39 +00:00
Chris Ross 2e5728f366 * Changed some of the methods to stop furutre name conflicts
* Added Willems patch for bump mapping -very vey cool, check out
  test/imllib2
* Died due to excess excitement over bump mapping


SVN revision: 2674
2000-05-20 22:33:14 +00:00
Carsten Haitzler caa073ee7b bowis's filter stuff... :)
SVN revision: 2673
2000-05-20 17:37:00 +00:00
Carsten Haitzler 589473593b oops - forgot to commit that :)
SVN revision: 2656
2000-05-16 18:17:48 +00:00
Carsten Haitzler 74af24a8ed OS2 pacthes make imlib2 build on os/2 apparently :)
SVN revision: 2653
2000-05-15 23:18:35 +00:00
Carsten Haitzler 9e55f36473 gawwwwwwwwwd - oops th = h not th = w; :)
SVN revision: 2649
2000-05-14 19:15:51 +00:00
Carsten Haitzler 00c6064e79 use willems math... :)
SVN revision: 2632
2000-05-12 19:15:03 +00:00
Carsten Haitzler dd38114d7f up to 0.0.5
SVN revision: 2627
2000-05-12 01:19:06 +00:00
Carsten Haitzler e55dc05d0b blend.c - RGBA destination works -and its optimized.. just a lookup..
SVN revision: 2626
2000-05-12 01:16:42 +00:00
Carsten Haitzler cce0e519cf the RIGHT math for RGBA->RGBA ops... :) not optmized at all tho :)
SVN revision: 2623
2000-05-11 07:25:18 +00:00
Carsten Haitzler 91416b3c2f get rid of unused flsuh func, cleanup rects properly for case of 1 rect
SVN revision: 2617
2000-05-09 18:30:52 +00:00
Tom Gilbert ea2371b206 This is weird. I'm sure I added the prototypes for these context_get_*
functions to Imlib2.h before... Yet they aren't there.... Hrm...


SVN revision: 2616
2000-05-09 17:26:30 +00:00
Carsten Haitzler 1679cca791 fixzed C code for ALPHA destination.. ok NOW its got it right... havent done
asm code though... MAY need to optimize C code math for alpha dest.


SVN revision: 2613
2000-05-08 23:20:11 +00:00
Peter Kjellerstedt 4c35ac5beb Removed this generated file from CVS (again).
SVN revision: 2609
2000-05-08 16:41:43 +00:00
Carsten Haitzler 306060052c build dither table for masks alwasy... even in depths > 16
SVN revision: 2606
2000-05-06 19:37:23 +00:00
Carsten Haitzler 01d14d7867 asm for colormod ops......... :)
SVN revision: 2600
2000-05-05 16:28:39 +00:00
Carsten Haitzler 15ff380285 aha! trying to free null pointers? NO NO NO - bad boy!
SVN revision: 2596
2000-05-04 16:32:58 +00:00
Carsten Haitzler 2fbc8d2424 allow for flipping whilst scaling and rendering... :)
SVN revision: 2589
2000-05-02 17:33:23 +00:00
Carsten Haitzler 2676818732 write text at any angle............... :) patches form willem again :)
SVN revision: 2583
2000-04-30 19:15:12 +00:00
Carsten Haitzler 2f077c4835 handle infinite loop for tile if scalign down to 1x1)
SVN revision: 2559
2000-04-27 07:51:25 +00:00
Michael Jennings d869bc8e5b Hush up on the warning.
SVN revision: 2555
2000-04-27 03:30:10 +00:00
Michael Jennings 4853dbe3d7 Don't cache partially-loaded images.
SVN revision: 2554
2000-04-27 03:28:45 +00:00
Carsten Haitzler cc8e9b0183 better asm detection - there's an --enable-mmx now too if you want to
force or disable the feature by force... it will try autodetect under linux
but only on the build machine...


SVN revision: 2546
2000-04-27 02:32:28 +00:00
Tom Gilbert ed923261d4 Thu Apr 27 03:16:59 GMT 2000
(gilbertt)

Okay, an ImlibProgressFunction now return int, not void. The idea of this is
so that a progressive load may be aborted midway, simply by returning 0 from
the progress callback. There are a number of reasons for wanting this.

This is a slight breakage to people currently using progressive loading -
you'll have to change your definition to int, and return 1 to get normal
behaviour again. As far as I know, only feh and imlib2_view uses progressive
loading, and I'll sort those two out. To anyone else, sorry, but it's not
released yet, what did you expect? ;-)

Notice. I haven't changed the loaders yet, so returning 0 won't do squat
until tomorrow, when I change them all. What they will do is clean up and
return what they've got so far. If anyone who wrote a loader wants to do
their own, cool, it'll save me learning the api of every damn image lib ;-)
It's just a case of swapping
progress(params, ...);
with
if(!progress(params, ...)
  cleanup_some_stuff_and_return_what_there_is();
Otherwise, I'll do it myself tomorrow.

Can anyone tell I've got time off work? ;-)


SVN revision: 2544
2000-04-27 02:14:59 +00:00
Tom Gilbert ef67431a5b Consolidate one ChangeLog in the root dir.
SVN revision: 2543
2000-04-27 01:51:07 +00:00
Tom Gilbert eff825c0ee Thu Apr 27 02:59:57 GMT 2000
(gilbertt)

Changed all the loaders to use ImlibProgressFunction instead of defining it
themselves. This is so I can change them all at once tomorrow.


SVN revision: 2542
2000-04-27 01:48:17 +00:00
Carsten Haitzler bf98465ea4 ok.. mmx asm for routines again.. and this time... they seem to not segv :)
SVN revision: 2538
2000-04-26 19:36:20 +00:00
Carsten Haitzler 939419bbf4 slight api changes..... problem was we have a useless paramin the pixmap gen
calls - it shoudl have used the context... :)


SVN revision: 2535
2000-04-25 18:17:37 +00:00
Michael Jennings 889d16f8e1 Never mind. I fixed the bugger.
SVN revision: 2533
2000-04-25 03:29:48 +00:00
Michael Jennings bc4976e023 Fixed a possible divide by 0.
SVN revision: 2515
2000-04-22 03:45:46 +00:00
Carsten Haitzler c58aa765c0 sorry - needed to unpatch code for old scaling to work.........
SVN revision: 2512
2000-04-20 22:49:12 +00:00
Carsten Haitzler 54b76ea1f7 scalign code back to old scaling... new scalign code has bugs... even the C
code has segv's.. somewhere... :(


SVN revision: 2511
2000-04-20 22:29:10 +00:00
Carsten Haitzler 4a09d1fe8a disable damnit!
SVN revision: 2510
2000-04-20 02:39:00 +00:00
Carsten Haitzler 1f4e1b0a9e mmx scaling back in - but forcibly disabled. new C scalign for scalign down..
works now.. :)


SVN revision: 2509
2000-04-20 02:37:29 +00:00
Carsten Haitzler 6f90764a22 add the bugger :)
SVN revision: 2503
2000-04-19 17:50:18 +00:00
Carsten Haitzler aa89de24f8 rgba code for plain 16bpp using mmx... :) and blend rounding asm error fixed
thanks willem :)


SVN revision: 2502
2000-04-19 16:53:34 +00:00
Carsten Haitzler 0b5aae9a1a unpatch scaling down code - there seems to be a segfault in it somewhere :)
SVN revision: 2493
2000-04-17 18:20:34 +00:00
Carsten Haitzler 5efd22e723 wow willem.. scalign down mmx code too.. :)
SVN revision: 2491
2000-04-17 07:59:06 +00:00
Carsten Haitzler 618cde9552 man.. more mmx asm for scaling.. thanks willem... you love this dont you? :)
SVN revision: 2490
2000-04-16 18:26:16 +00:00
Michael Jennings ffe5df89f3 "Hi. My name is raster, and I smoke crack. I think I'll dereference this
pointer I just freed.  Sound like a good idea?  Yes, I thought so too."
:-P


SVN revision: 2488
2000-04-14 03:11:19 +00:00
Carsten Haitzler e8c7419bf8 FIX FIX! evil mmx code! missing decls! thanks dragan - mej ::)
SVN revision: 2487
2000-04-13 23:27:07 +00:00
Carsten Haitzler 784415ca0a get rid of printf
SVN revision: 2486
2000-04-13 20:31:27 +00:00
Carsten Haitzler da1d0817cd no - DONT put dmalloc in!
SVN revision: 2485
2000-04-13 20:29:01 +00:00
Carsten Haitzler 2086c062e5 foudn evil mmx code overwriting memeory! thanks mej. back to the C code for
you!


SVN revision: 2484
2000-04-13 20:24:58 +00:00
Carsten Haitzler ea970ca51a oops =- add
SVN revision: 2483
2000-04-13 17:10:50 +00:00
Carsten Haitzler a8228e774a changelog..... NOOOOOOOOO cant be! :)
SVN revision: 2481
2000-04-13 16:37:42 +00:00
Carsten Haitzler 300307782a full fix of logic in blending rgb->rgb functions in C NB: the mmx asm needs to
be chnaged to reflect this


SVN revision: 2480
2000-04-13 16:31:51 +00:00
Carsten Haitzler 7968e8e119 blum blum blum
SVN revision: 2477
2000-04-13 03:02:19 +00:00
Michael Jennings 1759a0c9e4 Several miscellaneous bugfixes I did while converting Eterm to use Imlib2.
SVN revision: 2469
2000-04-12 23:40:10 +00:00
Carsten Haitzler 927519352b fix corner case for clippign where integer math rounds source widht to 0 where
it shoudl be 1.


SVN revision: 2465
2000-04-12 18:47:15 +00:00
Michael Jennings a621fc8a1f Added a function to retrieve the image filename, if it has one. It returns
a pointer to an internal string, so if you want to alter the filename, you
MUST strdup() it.


SVN revision: 2464
2000-04-11 23:34:59 +00:00
Carsten Haitzler 06825b3645 fix some blending cases
SVN revision: 2458
2000-04-10 21:50:23 +00:00
Carsten Haitzler 80bd308cd3 include updated comments
SVN revision: 2455
2000-04-10 18:26:57 +00:00
Carsten Haitzler 3def8d48d3 optimize mmx blending more.. uswed to do 15 million pixels/sec... now does 25
million per sec.. compared to the C (9million per sec) thats pretty good now


SVN revision: 2454
2000-04-10 18:12:40 +00:00