Browse Source

* Don't crash if Blit()'s second canvas argument is NULL (which is valid).

tags/v0.99.beta14
Sam Hocevar sam 18 years ago
parent
commit
8f5b6c1fbd
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      cxx/cucul++.cpp

+ 2
- 1
cxx/cucul++.cpp View File

@@ -132,7 +132,8 @@ void Cucul::Clear(void)

void Cucul::Blit(int x, int y, Cucul* c1, Cucul* c2)
{
cucul_blit(cv, x, y, c1->get_cucul_canvas_t(), c2->get_cucul_canvas_t());
cucul_blit(cv, x, y, c1->get_cucul_canvas_t(),
c2 ? c2->get_cucul_canvas_t() : NULL);
}

void Cucul::Invert()


Loading…
Cancel
Save