Commit Graph

13 Commits

Author SHA1 Message Date
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
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
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 06a53a073d Refactor shm stuff.
SVN revision: 37378
2008-11-01 18:11:10 +00:00
Kim Woelders 29442b80f5 Remove redundant BUILD_X11 tests, indent.
SVN revision: 37145
2008-10-26 13:59:07 +00:00
Kim Woelders 46caef98e5 Indent C files.
SVN revision: 30046
2007-05-20 13:26:25 +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
Kim Woelders 0819b731e5 Enable grabbing of ARGB drawables.
SVN revision: 22768
2006-05-20 10:43:49 +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 8c6ebda014 Fix colormap when grabbing 8 bit depth pixmaps.
SVN revision: 19759
2006-01-13 21:27:36 +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 5886f2a7cd and new much cleaner tree.
SVN revision: 12113
2004-11-01 09:45:31 +00:00