Commit Graph

1054 Commits

Author SHA1 Message Date
Kim Woelders 41c3a967d0 Indent (most) .c files.
SVN revision: 58518
2011-04-09 09:24:44 +00:00
Kim Woelders 4c55d2c3f6 Better image cache time stamp test.
SVN revision: 57918
2011-03-20 17:19:02 +00:00
Kim Woelders a1a018317a Fix pnm image loading in certain situations (ticket 721).
"It fails with "large" images, written with multiple pixels on the same line."

Patch by quentin.stievenart@gmail.com

SVN revision: 57697
2011-03-11 21:13:19 +00:00
Mike Frysinger 5983044ae4 png loader: do not hit "interlaced" member of the png ptr struct
this should work with libpng 1.[245].x ... did not check anything older than that though

patch by Thomas Klausner

SVN revision: 57171
2011-02-19 19:33:58 +00:00
Mike Frysinger d594895dba png loader: use png_jmpbuf() macro rather than hitting jmpbuf directly
this should work with libpng 1.[245].x ... did not check anything older than that though

patch by Thomas Klausner

SVN revision: 57170
2011-02-19 19:23:57 +00:00
Carsten Haitzler 9d92b88128 no more debian dir in our svn - debian now handles this tehmselves.
SVN revision: 54306
2010-11-08 05:54:24 +00:00
Lucas De Marchi 24909ec041 Fix typos
"he->the" where appropriate



SVN revision: 52493
2010-09-20 17:09:13 +00:00
Lucas De Marchi 2ef97d2252 Fix common misspellings
Following misspellings were fixed:

adn->and
alwasy->always
arbitary->arbitrary
cant->can't
commerical->commercial
comprimise->compromise
consistant->consistent
dependant->dependent
didnt->didn't
doesnt->doesn't
enviroments->environments
foudn->found
fucntion->function
isnt->isn't
iwth->with
mroe->more
neccesary->necessary
onyl->only
paranthesis->parenthesis
parralel->parallel
refernces->references
seperate->separate
shoudl->should
soem->some
wasnt->wasn't
wiht->with
wokr->work




SVN revision: 52023
2010-09-09 03:31:04 +00:00
Kim Woelders 9daceb518d Fix imlib_render_image_part_on_drawable_at_size() ...
... when using color modifier and not scaling (ticket 576).

SVN revision: 51846
2010-09-02 21:19:49 +00:00
Lucas De Marchi 43def7af7b Revert and re-apply badnull patch
Revert previous patch generated by badnull.cocci script, and apply the new one.
The main difference is that assert and assert-like functions are not touched
anymore.




SVN revision: 51650
2010-08-26 01:34:13 +00:00
Lucas De Marchi 35e8e96a61 Convert (hopefully) all comparisons to NULL
Apply badzero.cocci, badnull.coci and badnull2.cocci

This should convert all cases where there's a comparison to NULL to simpler
forms. This patch applies the following transformations:

code before patch               ||code after patch
===============================================================

return a == NULL;                 return !a;

return a != NULL;                 return !!a;

func(a == NULL);                  func(!a);

func(a != NULL);                  func(!!a);

b = a == NULL;                    b = !a;

b = a != NULL;                    b = !!a;

b = a == NULL ? c : d;            b = !a ? c : d;

b = a != NULL ? c : d;            b = a ? c : d;


other cases:

a == NULL                         !a
a != NULL                         a




SVN revision: 51487
2010-08-21 13:52:25 +00:00
Lucas De Marchi 5962d9d66c Apply memset-calloc.cocci
Change calls to malloc + memset to calloc whenever an automatic conversion can
be done.

Possible candidates are not treated here, only the ones we can be sure the
conversion is safe.



SVN revision: 51078
2010-08-13 12:53:08 +00:00
Lucas De Marchi 96d043addc FORMATTING
* Remove vim modelines:
 find . -name '*.[chx]' -exec sed -i '/\/\*$/ {N;N;/ \* vim:ts/d}' \{\} \;
 find . -name '*.[chx]' -exec sed -i '/\/[\*\/] *vim:/d' \{\} \;

* Remove leading blank lines:
 find . -name '*.[cxh]' -exec sed -i '/./,$!d'

If you use vim, use this in your .vimrc:
set ts=8 sw=3 sts=8 expandtab cino=>5n-3f0^-2{2(0W1st0



SVN revision: 50816
2010-08-04 16:57:32 +00:00
Kim Woelders e34f1fe134 Fix reading tiff images with orientation other than ORIENTATION_TOPLEFT (ticket 563).
There are almost certainly still issues to be fixed, particularly
around progess() and certain combinations of orientation and tiling.

SVN revision: 50515
2010-07-26 18:14:10 +00:00
Kim Woelders 2c4149fee4 Avoid some duplicated code.
SVN revision: 50514
2010-07-26 18:14:08 +00:00
Kim Woelders c7388db2ae imlib2_view stuff.
- Add -s option to show scaled image.
- Handle WM_DELETE_WINDOW.
- Quit on keypress 'q'.
- Trivial cleanups.

SVN revision: 50513
2010-07-26 18:14:05 +00:00
Lucas De Marchi b2a826a680 Remove unneeded code with notnull.cocci script
The notnull.cocci script from Coccinelle finds places where you check if a
variable is NULL, but it's known not to be NULL. The check can be safely
removed. For example, this code would be caught by notnull:

if (!var) return;
if (var && var->fld) { ... }

It's needless to check again if var is not NULL because if it's in fact NULL,
it would have returned on the previous "if". This commit removes all the
trivial places where this pattern happens. Another patch will be generated for
the more complex cases.


SVN revision: 50241
2010-07-14 02:05:47 +00:00
Kim Woelders cdaa13122d Update ChangeLog.
SVN revision: 48636
2010-05-05 18:25:17 +00:00
Kim Woelders 2fd09af93f 1.4.4.
SVN revision: 48635
2010-05-05 18:23:19 +00:00
Kim Woelders a50d2b5651 New ChangeLog.
SVN revision: 48634
2010-05-05 18:23:17 +00:00
Kim Woelders e8e6591c68 Add rule to generate ChangeLog.
SVN revision: 48633
2010-05-05 18:23:13 +00:00
Carsten Haitzler e5a280efc1 minor buglet - w * w - duh!
SVN revision: 47825
2010-04-08 01:29:29 +00:00
Kim Woelders d3bdadd623 Remove unused __imlib_FileField functions.
SVN revision: 47773
2010-04-05 18:36:50 +00:00
Kim Woelders 3eb65fa228 No need for libtoolize twice?
SVN revision: 47772
2010-04-05 18:36:38 +00:00
Kim Woelders f3888ffb4f 1.4.3.
SVN revision: 47222
2010-03-14 20:34:27 +00:00
Kim Woelders dcddb36686 Remove .cvsignores.
SVN revision: 47214
2010-03-14 15:25:09 +00:00
Kim Woelders 6e367dc86b Remove ancient ChangeLog.
SVN revision: 47213
2010-03-14 15:25:06 +00:00
Kim Woelders 58a87f8912 No need to touch README.
SVN revision: 47212
2010-03-14 15:25:03 +00:00
Kim Woelders f8d9efaec5 Oops - forgot extern.
SVN revision: 46591
2010-02-27 18:14:25 +00:00
Kim Woelders d67ea1d096 Avoid cast.
SVN revision: 46335
2010-02-20 11:51:07 +00:00
Kim Woelders 08183bec3f Only check XShmAttach once in __imlib_ShmGetXImage().
SVN revision: 46334
2010-02-20 11:51:04 +00:00
Kim Woelders 7bf03a945c Fix excessive checking for shm extension in __imlib_GrabDrawableToRGBA().
SVN revision: 46333
2010-02-20 11:51:02 +00:00
Kim Woelders b036dd5644 Add .gitignore.
SVN revision: 46332
2010-02-20 11:50:59 +00:00
Kim Woelders 2d25ea7c2a Fix for libpng-1.4 (png_check_sig->png_sig_cmp).
SVN revision: 46088
2010-02-11 20:01:54 +00:00
Michael Jennings 2dee79e83d Fix build.
SVN revision: 45971
2010-02-07 23:47:46 +00:00
Gustavo Sverzut Barbieri 497b08e5bc there is no m4 dir anymore.
SVN revision: 45908
2010-02-05 19:31:41 +00:00
Vincent Torri 47e39510e0 aclocal flag could be needed. I prefer being polite and saying nothing about libtool...
SVN revision: 45093
2010-01-13 21:08:43 +00:00
Christopher Michael f6055bfa96 Enable silent rules in building imlib2
SVN revision: 44212
2009-12-06 02:31:10 +00:00
Kim Woelders c84c09c31e Remove incorrect test for X11/X.h.
SVN revision: 43355
2009-10-30 20:00:01 +00:00
Kim Woelders d0d1a48672 Fix compiling .S files when using older automake (ticket 449).
SVN revision: 43354
2009-10-30 19:40:29 +00:00
Kim Woelders 4d1f5002b9 Use PNG_CFLAGS when compiling png loader (ticket 449).
SVN revision: 43332
2009-10-28 21:17:27 +00:00
Kim Woelders 9ca97f2001 Correct image dimension check (pixels are four bytes).
SVN revision: 43242
2009-10-24 06:29:21 +00:00
Carsten Haitzler 3bcb4f4746 handle modified dir date of 0
SVN revision: 42936
2009-10-07 12:07:53 +00:00
Kim Woelders dd93bae938 Fix build for x86 on x86_64.
As far as I can tell this fixes building on x86_64 with e.g.
'./configure --enable-mmx CFLAGS=-m32" or "rpmbuild --target i386 ..."
without breaking anything.


SVN revision: 41667
2009-08-10 16:26:20 +00:00
Kim Woelders 661a78dc57 Remove unimplemented imlib_clip_line prototype and documentation (ticket 379).
SVN revision: 41517
2009-07-27 21:35:25 +00:00
Kim Woelders 5619f9e257 Relax 8192 pixel dimension limit (ticket 361).
This time hopefully without buffer overflow issues.



SVN revision: 41516
2009-07-27 21:05:12 +00:00
Christopher Michael 02d6b0d451 Add m4 macro dir as suggested by autoconf.
SVN revision: 41492
2009-07-24 19:32:53 +00:00
Kim Woelders dedebfcc1a Relax 8192 pixel dimension limit (ticket 361).
SVN revision: 41412
2009-07-18 09:58:43 +00:00
Mike Frysinger ebab7f27bb imlib2: bumpmap: link against -lm since we use sin()/cos() functions
SVN revision: 41237
2009-07-03 01:30:49 +00:00
Daniel Kolesa 99ddacc489 Fixed debian stuff everywhere.
SVN revision: 40505
2009-05-04 17:36:48 +00:00