Commit Graph

28 Commits

Author SHA1 Message Date
Kim Woelders 5d1083858c image: Let __imlib_CreateImage() allocate pixel data buffer
..and check dimensions.

Does simplify things nicely.
2023-01-14 08:59:32 +01:00
Kim Woelders b39d33c800 image: Change has alpha flag to separate byte
It is the only flag that should be used by the loaders
2022-07-10 12:50:40 +02:00
Kim Woelders 18d0befc57 Use stdint types instead of DATA32 etc.
This should make things slightly more consistent and unambiguous, and
the stdint types are already used here and there (in loaders).

I'm not aware of any systems where this change makes any difference.
If there are targets out there with 64 bit ints imlib2 might now work
there and on targets with 16 bit ints it most likely still doesn't.
2022-03-26 15:54:40 +01:00
Kim Woelders 4529fcf678 Remove some unnecessary headers 2022-03-07 08:02:04 +01:00
Kim Woelders 97b3aa9b9b Introduce types.h
Avoiding more conveluted header file inclusion order issues.
2022-03-07 08:01:37 +01:00
Kim Woelders 46dc96436a Remove system includes from common.h
Avoiding obscure include order problems.
2022-03-07 08:01:19 +01:00
Kim Woelders fb4fb24e44 Refactor image flags stuff
For improved grepability.
2022-02-26 09:09:25 +01:00
Kim Woelders 9f58303ac4 Refactoring around font glyph lookup
Avoiding some code duplication.
2022-01-29 19:59:47 +01:00
Kim Woelders 40b6498281 Drop some intermediate type definitions
Not helpful, IMO.
2021-12-21 06:05:32 +01:00
Kim Woelders e82a5997ec Fix clang-analyzer warnings - lib (mostly trivial) 2021-04-16 17:15:06 +02:00
Kim Woelders 755dc017f2 Use pixel instead of r,b,g,a in __imlib_render_str() 2019-11-09 12:07:04 +01:00
Kim Woelders 89432fff5e Use common PIXEL_ARGB() macro to compose pixels 2018-07-17 19:31:04 +02:00
Yuriy M. Kaminskiy 633a8667b1 Harden API and internals against overly large images
Prevents potential integer overflow -> insufficient allocation -> heap overflow scenarios.
2016-04-13 22:21:58 +02:00
Kim Woelders 54594ccd8d Change a number of internal function names.
Consistenly use the __-prefix on internal imlib_... functions.
2014-12-16 20:35:37 +01:00
Kim Woelders 6b24728fb8 Header file cleanups. 2013-12-22 05:10:44 +01:00
Sebastian Dransfeld a50ee1d8c4 Fix signed warning.
SVN revision: 32341
2007-11-04 09:47:53 +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
Kim Woelders 46caef98e5 Indent C files.
SVN revision: 30046
2007-05-20 13:26:25 +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 4eed6ec35b fix clip?
SVN revision: 27085
2006-11-13 11:20:00 +00:00
Kim Woelders c26ccebd9d Another attempt to fix rendering of certain(?) fonts.
SVN revision: 19439
2005-12-31 00:58:44 +00:00
Sebastian Dransfeld d2a2a097ac Remove unused variables.
SVN revision: 16811
2005-09-20 17:22:48 +00:00
Kim Woelders 9cffb23460 Bad fix - Revert.
SVN revision: 15964
2005-07-30 17:54:02 +00:00
Carsten Haitzler 96693d652c expand tmp image
SVN revision: 15936
2005-07-29 02:23:55 +00:00
Carsten Haitzler 5886f2a7cd and new much cleaner tree.
SVN revision: 12113
2004-11-01 09:45:31 +00:00