Ignore:
Timestamp:
Nov 5, 2006, 7:00:53 PM (13 years ago)
Author:
Sam Hocevar
Message:
  • Don't crash if Blit()'s second canvas argument is NULL (which is valid).
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcaca/trunk/cxx/cucul++.cpp

    r1269 r1276  
    133133void Cucul::Blit(int x, int y, Cucul* c1, Cucul* c2)
    134134{
    135     cucul_blit(cv, x, y, c1->get_cucul_canvas_t(), c2->get_cucul_canvas_t());
     135    cucul_blit(cv, x, y, c1->get_cucul_canvas_t(),
     136                         c2 ? c2->get_cucul_canvas_t() : NULL);
    136137}
    137138
Note: See TracChangeset for help on using the changeset viewer.