From: Grigori Goronzy Date: Wed, 24 Jun 2009 22:05:04 +0000 (+0200) Subject: Test program: nicer-looking background X-Git-Tag: 0.9.7~99 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0893cc192612ee7ea6175094faa60a4f156459b5;p=libass Test program: nicer-looking background Use a uniformly colored background in the test program. This looks better than the randomly-looking pattern that was used before. A chessboard pattern would be even better, but this will do for now. --- diff --git a/test/test.cpp b/test/test.cpp index ea70acc..4b39110 100644 --- a/test/test.cpp +++ b/test/test.cpp @@ -88,8 +88,9 @@ static image_t* gen_image(int width, int height) { img->height = height; img->stride = width * 3; img->buffer = (unsigned char*)calloc(1, height * width * 3); - for (int i = 0; i < height * width * 3; ++i) - img->buffer[i] = (i/3/50) % 100; + memset(img->buffer, 63, img->stride * img->height); + //for (int i = 0; i < height * width * 3; ++i) + // img->buffer[i] = (i/3/50) % 100; return img; }