Changeset 3590


Ignore:
Timestamp:
Jul 29, 2009, 6:00:25 PM (14 years ago)
Author:
Pascal Terjan
Message:
  • Fix a segfault in rotate_180 on 0 sized canvas
Location:
libcaca/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • libcaca/trunk/caca/transform.c

    r3583 r3590  
    191191    uint32_t *aend = abegin + cv->width * cv->height - 1;
    192192    int y;
     193
     194    if(!cbegin)
     195        return 0;
    193196
    194197    while(cbegin < cend)
  • libcaca/trunk/tests/simple.c

    r2821 r3590  
    4242    TEST(caca_get_char(cv, 0, 0) != 'x');
    4343
     44    caca_rotate_180(cv);
     45
    4446    caca_set_canvas_size(cv, 1, 1);
    4547    TEST(caca_get_char(cv, 0, 0) != 'x');
Note: See TracChangeset for help on using the changeset viewer.