Sam Hocevar
a09f027727
Add the copyright unit test and update copyright information everywhere.
15 anos atrás
Sam Hocevar
107ff4b815
Large source code cleanup, getting rid of spaces, tabs, and svn keywords.
15 anos atrás
Sam Hocevar
6d526ea629
Implement caca_unset_attr() and caca_toggle_attr(). Fixes #7 .
15 anos atrás
Sam Hocevar
5269cad56c
Allow to temporarily disable dirty rectangle handling. This allows for huge
speedups when the calling application knows the dirty rectangle covered by
a complex operation.
15 anos atrás
Sam Hocevar
ea99175a2f
Change the dirty rectangle API once again so that calling applications get
a more natural (x,y,w,h) 4-tuple to handle.
15 anos atrás
Sam Hocevar
3b3bf0160d
Fix a few dirty rectangle bugs found with the unit tests. Let that be a
lesson to you: unit tests are good.
15 anos atrás
Sam Hocevar
3a6f4323ec
Finish the dirty rectangle architecture. They are now reliable in the sense
that anything outside the dirty rectangle is guaranteed to be unchanged, but
we currently mark far too many cells as dirty. This must be optimised.
15 anos atrás
Sam Hocevar
319cc69db3
Continue the libcaca/libcucul merge. Source and binary compatibility
are almost there.
16 anos atrás
Sam Hocevar
f61816ceb7
Starting refactoring to get rid of libcucul. The initial reason for the
split is rendered moot by the plugin system: when enabled, binaries do
not link directly with libX11 or libGL. I hope this is a step towards
more consisteny and clarity.
16 anos atrás
Sam Hocevar
6a3f5c21f0
* Changed most of the long ints in the API into C99 types. WARNING: this
completely breaks compatibility with previous versions of libcaca on
64-bit systems.
16 anos atrás
Sam Hocevar
f44b5e11fa
* Changed most "unsigned char" variables into "uint8_t", including in
prototypes. As they are equivalent, this does not break the ABI.
16 anos atrás
Sam Hocevar
99b5396e8e
* Remove #include <stdint.h> etc. from "common.h". Instead, make sure that
<cucul.h> will provide the C99 types, even if libcaca has been installed.
* Rename what's left of "common.h" to "stubs.h".
* Remove all references to erroneous <inttypes.h> from source files.
16 anos atrás
Sam Hocevar
b519d05bce
* Export cucul_attr_to_rgb12_bg(), cucul_attr_to_rgb12_fg() and
cucul_attr_to_argb64() (previously _cucul_attr_to_rgb12bg,
_cucul_attr_to_rgb12fg and _cucul_attr_to_argb4) in the official
libcucul API.
* Cleanup complete: libcaca no longer depends on "cucul_internals.h".
17 anos atrás
Sam Hocevar
2149829bdf
* Added as many "const" qualifiers as possible to the public API.
17 anos atrás
Sam Hocevar
9597783308
* Bwarf, typo in the no warranty clause.
18 anos atrás
Sam Hocevar
33058757da
* Add a no warranty clause to the code.
18 anos atrás
Sam Hocevar
cff37b56c5
* Fix a bug in cucul_put_attr. This function was simply not working.
18 anos atrás
Sam Hocevar
51936f585c
* Got rid of HAVE_ERRNO_H ifdefs by defining seterrno()/geterrno() functions.
* More debugging information in the import/export and font functions.
18 anos atrás
Sam Hocevar
3243101ff0
* Rename cucul_put*() into cucul_put_*(). Updated all code to reflect that.
18 anos atrás
Sam Hocevar
8c43b304c9
* Replace _cucul_attr_to_ansi8() with a now documented cucul_attr_to_ansi()
function.
18 anos atrás
Sam Hocevar
25d0366fe6
* Get rid of _cucul_attr_to_ansi4[fb]g() and replace all calls with
the now official cucul_attr_to_ansi_[fb]g().
18 anos atrás
Sam Hocevar
c5a94eee07
* Export cucul_attr_to_ansi_fg() and cucul_attr_to_ansi_bg().
18 anos atrás
Sam Hocevar
819dab40e7
* Implemented cucul_putattr(), cucul_putchar()'s attribute equivalent.
18 anos atrás
Sam Hocevar
17f272c4c4
* Deprecate buffer management. We're back to standard void* memory areas.
18 anos atrás
Sam Hocevar
74babecc70
* Clarify cucul_get_attr() behaviour in the cucul_set_attr() documentation.
18 anos atrás
Sam Hocevar
42c9518d2a
* Got rid of cucul_ansi_to_attr() and cucul_argb_to_attr() and restored
cucul_set_color() and cucul_set_truecolor() under the new names
cucul_set_color_ansi() and cucul_set_color_argb().
* Renamed cucul_get_color_name() into cucul_ansi_to_str().
18 anos atrás
Sam Hocevar
019938c9ae
* Changed cucul_set_attr() so that only setting the style does not change
the colour.
18 anos atrás
Sam Hocevar
c3bcb0052e
* Add back cucul_set_color() and cucul_set_truecolor() but mark them as
deprecated using GCC attributes.
18 anos atrás
Sam Hocevar
0b37a307dd
* Get rid of cucul_set_attr_ansi() and cucul_set_attr_argb and merge the
functionality into cucul_set_attr().
* Add cucul_ansi_to_attr() and cucul_argb_to_attr().
* Rename CUCUL_COLOR_* to CUCUL_*.
18 anos atrás
Sam Hocevar
aa93ad25f6
* Remove cucul_set_color() from the exported API and replaced all calls
with cucul_set_attr_ansi(). Old application will still compile (but issue
a warning) and run, though.
18 anos atrás
Sam Hocevar
86301dd48c
* Use the LSB of alpha and blue components to encode additional flags such
as bold or underline. No higher level support for these yet, but at
least everything is consistent.
* Created cucul_set_attr_ansi() and cucul_set_attr_argb() which are bound
to replace cucul_set_color() and cucul_set_truecolor().
18 anos atrás
Sam Hocevar
26c3ea1aa4
* Removed "This function..." constructs from documentation. Fixed a few
documentation errors or imprecisions.
18 anos atrás
Sam Hocevar
81760312af
* Implemented cucul_get_color().
18 anos atrás
Sam Hocevar
956ee0b309
* Use a slightly different RGB palette for ANSI colours, so that brown
really looks like brown and not like desaturated yellow.
18 anos atrás
Sam Hocevar
42b967ec0e
* Set the transparent colour's RGB values to the default colour's ones.
18 anos atrás
Sam Hocevar
235504d81a
* More error checking in libcucul.
18 anos atrás
Sam Hocevar
5cb4d4dedf
* Removed duplicate uint*_t defines from *_internal.h and included common.h
in all .c files that needed it.
18 anos atrás
Sam Hocevar
2353ad9215
* Minor documentation improvements.
18 anos atrás
Sam Hocevar
687a2c43f6
* Renamed caca_t into caca_display_t.
* Renamed canvas handle variables from "c" to "cv". Eh ouais mon gros.
18 anos atrás
Sam Hocevar
246c5b4d67
* Renamed cucul_t into cucul_canvas_t. Eh ouais mon con.
18 anos atrás
Sam Hocevar
351fad7e15
* Fixed a bug in _cucul_argb32_to_rgb24fg/bg().
18 anos atrás
Sam Hocevar
5a476a29ae
* Implemented argb32 to rgb24fg/bg colour conversions.
18 anos atrás
Sam Hocevar
9f0a475645
* Moved cucul_set_color() from canvas.c to colour.c.
* Added cucul_set_truecolor() for non-ANSI colours.
* Added new argb32 -> rgb12 conversion functions.
18 anos atrás
Sam Hocevar
018fda76e8
* Removed \file directives from all files except caca.h and cucul.h, to
remove redundencies in the Doxygen documentation.
18 anos atrás
Sam Hocevar
1911e368f4
* Fixed compilation warning.
18 anos atrás
Sam Hocevar
b355e0581d
* Fixed colour conversion routines so that they work with ARGB too.
18 anos atrás
Sam Hocevar
9369b9a48f
* Created internal function _cucul_argb32_to_argb4() that splits an argb
fg/bg value into its separate argb 4-bit fields.
18 anos atrás
Sam Hocevar
a8990ca5a6
* Replaced occurrences of "rgba" with "argb".
18 anos atrás
Sam Hocevar
af4b95f8e6
* Store colour information on 32 bits, for future 12-bit colour support.
18 anos atrás