"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "caca/attr.c" between
libcaca-0.99.beta19.tar.gz and libcaca-0.99.beta20.tar.bz2

About: libcaca is a graphics library that outputs text instead of pixels, so that it can work on older video cards or text terminals (something like an advanced AAlib library).

attr.c  (libcaca-0.99.beta19):attr.c  (libcaca-0.99.beta20.tar.bz2)
/* /*
* libcaca Colour ASCII-Art library * libcaca Colour ASCII-Art library
* Copyright (c) 2002-2014 Sam Hocevar <sam@hocevar.net> * Copyright © 2002—2018 Sam Hocevar <sam@hocevar.net>
* All Rights Reserved * All Rights Reserved
* *
* This library is free software. It comes without any warranty, to * This library is free software. It comes without any warranty, to
* the extent permitted by applicable law. You can redistribute it * the extent permitted by applicable law. You can redistribute it
* and/or modify it under the terms of the Do What the Fuck You Want * and/or modify it under the terms of the Do What the Fuck You Want
* to Public License, Version 2, as published by Sam Hocevar. See * to Public License, Version 2, as published by Sam Hocevar. See
* http://www.wtfpl.net/ for more details. * http://www.wtfpl.net/ for more details.
*/ */
/* /*
* This file contains functions for attribute management and colourspace * This file contains functions for attribute management and colourspace
skipping to change at line 527 skipping to change at line 527
uint32_t _caca_attr_to_rgb24fg(uint32_t attr) uint32_t _caca_attr_to_rgb24fg(uint32_t attr)
{ {
return RGB12TO24(caca_attr_to_rgb12_fg(attr)); return RGB12TO24(caca_attr_to_rgb12_fg(attr));
} }
uint32_t _caca_attr_to_rgb24bg(uint32_t attr) uint32_t _caca_attr_to_rgb24bg(uint32_t attr)
{ {
return RGB12TO24(caca_attr_to_rgb12_bg(attr)); return RGB12TO24(caca_attr_to_rgb12_bg(attr));
} }
/*
* XXX: The following functions are aliases.
*/
uint32_t cucul_get_attr(cucul_canvas_t const *, int, int)
CACA_ALIAS(caca_get_attr);
int cucul_set_attr(cucul_canvas_t *, uint32_t) CACA_ALIAS(caca_set_attr);
int cucul_put_attr(cucul_canvas_t *, int, int, uint32_t)
CACA_ALIAS(caca_put_attr);
int cucul_set_color_ansi(cucul_canvas_t *, uint8_t, uint8_t)
CACA_ALIAS(caca_set_color_ansi);
int cucul_set_color_argb(cucul_canvas_t *, uint16_t, uint16_t)
CACA_ALIAS(caca_set_color_argb);
uint8_t cucul_attr_to_ansi(uint32_t) CACA_ALIAS(caca_attr_to_ansi);
uint8_t cucul_attr_to_ansi_fg(uint32_t) CACA_ALIAS(caca_attr_to_ansi_fg);
uint8_t cucul_attr_to_ansi_bg(uint32_t) CACA_ALIAS(caca_attr_to_ansi_bg);
uint16_t cucul_attr_to_rgb12_fg(uint32_t) CACA_ALIAS(caca_attr_to_rgb12_fg);
uint16_t cucul_attr_to_rgb12_bg(uint32_t) CACA_ALIAS(caca_attr_to_rgb12_bg);
void cucul_attr_to_argb64(uint32_t, uint8_t[8]) CACA_ALIAS(caca_attr_to_argb64);
 End of changes. 2 change blocks. 
3 lines changed or deleted 3 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)