Sam Hocevar
1f5518f842
Rename caca_get_cursor_x() and caca_get_cursor_y() to caca_wherex() and
caca_wherey(), in order to match the old <conio.h> naming scheme.
15 vuotta sitten
Sam Hocevar
4f7081153e
Do not add a dirty rectangle at the cursor's position. It's up to the
display driver to clean up its shit. Fixed X11 driver accordingly.
15 vuotta sitten
Sam Hocevar
1d60711ac4
Mark the whole canvas as dirty when a dirty rectangle aware driver is
attached to it.
15 vuotta sitten
Pascal Terjan
de5be87d0e
Don't redraw background for more than the dirty rectangle in x11 driver, we will not redraw foreground there
15 vuotta sitten
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 vuotta sitten
Sam Hocevar
222e165d21
Fix dirty rectangle handling in the X11 and SLang drivers.
15 vuotta sitten
Sam Hocevar
a6b98c2518
Change the dirty rectangle API so that it can handle several rectangles. The
inner implementation still only handles one dirty rectangle, but this way
we can prepare supporting applictions for the future.
15 vuotta sitten
Pascal Terjan
27fffbb33c
Fix empty dirty rectangles detection
15 vuotta sitten
Pascal Terjan
44f5d172f0
* Only redraw dirty rectangle in x11 driver
15 vuotta sitten
Sam Hocevar
e1562a8d46
libcaca: move codecs and import/export functions into subdirectories.
16 vuotta sitten
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 vuotta sitten
Sam Hocevar
4ea785f818
* Remove all unsigned ints from exported functions. Signed arithmetic is
far better for error checking.
16 vuotta sitten
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 vuotta sitten
Sam Hocevar
e15e962928
* Implement caca_create_display_with_driver() to specify an output driver
without using environment variables..
* Implement caca_get_display_driver() to return the current display's
output driver.
* Add a simple example program to test caca_create_display_with_driver().
17 vuotta sitten
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 vuotta sitten
Sam Hocevar
07b9891afa
* Introduce cucul_get_canvas_chars() and cucul_get_canvas_attrs() to avoid
direct cv->chars and cv->attrs access by display drivers.
17 vuotta sitten
Sam Hocevar
7362a612c4
* Add cucul_manage_canvas() and cucul_unmanage_canvas(). Display
drivers no longer need to access the cv->refcount private member
and __cucul_set_canvas_size() is no longer needed.
17 vuotta sitten
Sam Hocevar
9da4d7b000
* Made the caca_event_t structure opaque and created a whole bunch of
functions to access its real data. This is a big API change that will
break your software, sorry :(
17 vuotta sitten
Sam Hocevar
2149829bdf
* Added as many "const" qualifiers as possible to the public API.
17 vuotta sitten
Sam Hocevar
31cbfb5bea
* Rename _cucul_set_canvas_size into __cucul_set_canvas_size to prevent
collisions due to symbol mangling.
17 vuotta sitten
Sam Hocevar
95e6709b10
* Implemented caca_set_cursor() on the X11, ncurses and S-Lang drivers.
* Use caca_set_cursor() in test/input.c.
17 vuotta sitten
Sam Hocevar
a6cb886e4a
* Differentiate between • and ● in the X11 rendering overrides.
17 vuotta sitten
Sam Hocevar
1e67bd5400
* Patch by Ben Wiley Sittler for two misrendered glyphs.
17 vuotta sitten
Sam Hocevar
9369bb3cb8
* Slightly nicer code in driver_x11.c.
17 vuotta sitten
Sam Hocevar
8ed49158e8
* X11 driver improvements courtesy of Ben Wiley Sittler. Reworked them a
bit myself, too.
17 vuotta sitten
Sam Hocevar
9597783308
* Bwarf, typo in the no warranty clause.
18 vuotta sitten
Sam Hocevar
33058757da
* Add a no warranty clause to the code.
18 vuotta sitten
Sam Hocevar
e1a42d9b42
* Added caca_set_cursor(). Not yet functional.
18 vuotta sitten
Sam Hocevar
111447fe27
* Blink/Underline/Bold/Italics support in the HTML exporters.
* Underline support in the X11 driver.
18 vuotta sitten
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 vuotta sitten
Sam Hocevar
e03e1d62da
* Allow to create the initial canvas with a zero size. Either the application
resizes it later, or the driver changes it to fit the display.
18 vuotta sitten
Sam Hocevar
4711611e3f
* Support for fullwidth glyphs in the libcaca output drivers.
18 vuotta sitten
Sam Hocevar
0c1746c626
* Renamed the event data member "ucs4" to "utf32" for consistency
with "utf8".
18 vuotta sitten
Sam Hocevar
9f90f3f36d
* Added the long dash and middle dot CP437 characters to the X11 driver.
18 vuotta sitten
Sam Hocevar
3de6dcf5ef
* Added U+25A0 (■) to the CP437 hack in the X11 driver.
18 vuotta sitten
Jean-Yves Lamoureux
7674499822
* removed duplicate code
18 vuotta sitten
Sam Hocevar
20c12d1912
* Wow, we even have Home/End support in X11.
18 vuotta sitten
Sam Hocevar
311cd082e3
* PageUp/PageDown support in X11.
18 vuotta sitten
Sam Hocevar
5cb4d4dedf
* Removed duplicate uint*_t defines from *_internal.h and included common.h
in all .c files that needed it.
18 vuotta sitten
Sam Hocevar
1ec6544305
* More function mass-renaming: caca_attach -> caca_create_display, etc.
18 vuotta sitten
Sam Hocevar
18f6532dbc
* Renamed main canvas-related functions so that they have "canvas" in
their name, eg. cucul_create() -> cucul_create_canvas() etc.
* Moved buffer-related functions to cucul/buffer.c.
18 vuotta sitten
Sam Hocevar
687a2c43f6
* Renamed caca_t into caca_display_t.
* Renamed canvas handle variables from "c" to "cv". Eh ouais mon gros.
18 vuotta sitten
Sam Hocevar
246c5b4d67
* Renamed cucul_t into cucul_canvas_t. Eh ouais mon con.
18 vuotta sitten
Sam Hocevar
4749a448c3
* Compilation fix.
18 vuotta sitten
Sam Hocevar
792c7481f5
* Implemented CACA_EVENT_QUIT. Unused yet.
18 vuotta sitten
Sam Hocevar
3fa0bbbd7c
* Added truecolor support to the X11 and GL drivers.
18 vuotta sitten
Sam Hocevar
17c065a49e
* Replaced "struct cucul_*" and "struct caca_*" types with opaque typedefs
such as cucul_dither_t instead of struct cucul_dither.
* Made cucul_buffer_t an opaque structure and implemented the two getters
cucul_get_buffer_data() and cucul_get_buffer_size().
* Documented all missing functions and function parameters.
18 vuotta sitten
Sam Hocevar
018fda76e8
* Removed \file directives from all files except caca.h and cucul.h, to
remove redundencies in the Doxygen documentation.
18 vuotta sitten
Sam Hocevar
a8990ca5a6
* Replaced occurrences of "rgba" with "argb".
18 vuotta sitten
Sam Hocevar
af4b95f8e6
* Store colour information on 32 bits, for future 12-bit colour support.
18 vuotta sitten