From 3f7362eabb7f45bf0cbeec4bbf96dfab210c2ca1 Mon Sep 17 00:00:00 2001 From: Sam Hocevar Date: Tue, 25 Apr 2006 15:22:53 +0000 Subject: [PATCH] * Ahahaha. Meet the "optimisation" that breaks everything. --- cucul/import.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/cucul/import.c b/cucul/import.c index 03cdbe0..6f85b17 100644 --- a/cucul/import.c +++ b/cucul/import.c @@ -179,8 +179,12 @@ static cucul_canvas_t *import_text(void const *data, unsigned int size) if(x >= width || y >= height) { - width = x + 1; - height = y + 1; + if(x >= width) + width = x + 1; + + if(y >= height) + height = y + 1; + cucul_set_canvas_size(cv, width, height); }