Changeset 1788


Ignore:
Timestamp:
Jun 28, 2007, 6:29:00 PM (13 years ago)
Author:
Sam Hocevar
Message:
  • Renamed cucul_left/cucul_right into cucul_rotate_left/cucul_rotate_right.
  • Renamed cucul_rotate into cucul_rotate_180.
  • Deprecated cucul_rotate and fix examples accordingly. Hope it all makes sense.
Location:
libcaca/trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • libcaca/trunk/cucul/cucul.h

    r1786 r1788  
    121121int cucul_flip(cucul_canvas_t *);
    122122int cucul_flop(cucul_canvas_t *);
    123 int cucul_rotate(cucul_canvas_t *);
    124 int cucul_left(cucul_canvas_t *);
    125 int cucul_right(cucul_canvas_t *);
     123int cucul_rotate_180(cucul_canvas_t *);
     124int cucul_rotate_left(cucul_canvas_t *);
     125int cucul_rotate_right(cucul_canvas_t *);
    126126/*  @} */
    127127
     
    289289    cucul_canvas_t * cucul_import_canvas(cucul_buffer_t *,
    290290                                         char const *) CUCUL_DEPRECATED;
     291    int cucul_rotate(cucul_canvas_t *) CUCUL_DEPRECATED;
    291292#   define CUCUL_COLOR_BLACK CUCUL_BLACK
    292293#   define CUCUL_COLOR_BLUE CUCUL_BLUE
  • libcaca/trunk/cucul/legacy.c

    r1462 r1788  
    210210}
    211211
     212/*
     213 * Functions from transform.c
     214 */
     215
     216int cucul_rotate(cucul_canvas_t *cv)
     217{
     218    return cucul_rotate_180(cv);
     219}
     220
  • libcaca/trunk/cucul/transform.c

    r1786 r1788  
    174174 *  \return This function always returns 0.
    175175 */
    176 int cucul_rotate(cucul_canvas_t *cv)
     176int cucul_rotate_180(cucul_canvas_t *cv)
    177177{
    178178    uint32_t *cbegin = cv->chars;
     
    236236 *  \return 0 in case of success, -1 if an error occurred.
    237237 */
    238 int cucul_left(cucul_canvas_t *cv)
     238int cucul_rotate_left(cucul_canvas_t *cv)
    239239{
    240240    uint32_t *newchars, *newattrs;
     
    322322 *  \return 0 in case of success, -1 if an error occurred.
    323323 */
    324 int cucul_right(cucul_canvas_t *cv)
     324int cucul_rotate_right(cucul_canvas_t *cv)
    325325{
    326326    uint32_t *newchars, *newattrs;
  • libcaca/trunk/test/text.c

    r1787 r1788  
    6161    cucul_blit(cv, 0, cucul_get_canvas_height(pig), pig, NULL);
    6262    cucul_flop(pig);
    63     cucul_rotate(pig);
     63    cucul_rotate_180(pig);
    6464    cucul_blit(cv, cucul_get_canvas_width(pig),
    6565                   cucul_get_canvas_height(pig), pig, NULL);
     
    6969    free(buffer);
    7070
    71     cucul_left(cv);
     71    cucul_rotate_left(cv);
    7272    buffer = cucul_export_memory(cv, "utf8", &len);
    7373    fwrite(buffer, len, 1, stdout);
  • libcaca/trunk/test/transform.c

    r1753 r1788  
    105105    cucul_put_str(cv, 0, 18, "rotate");
    106106    cucul_blit(tmp, 0, 0, image, NULL);
    107     cucul_rotate(tmp);
     107    cucul_rotate_180(tmp);
    108108    cucul_blit(cv, 10, 18, tmp, NULL);
    109109
Note: See TracChangeset for help on using the changeset viewer.