summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorGrigori Goronzy <greg@blackbox>2009-06-25 00:05:04 +0200
committerGrigori Goronzy <greg@blackbox>2009-06-25 00:05:04 +0200
commit0893cc192612ee7ea6175094faa60a4f156459b5 (patch)
tree7404afba534d7cf6395601933ddecc67511574c0 /test
parentb53fb2ad554440646f5dfe781459af058ba11f8f (diff)
downloadlibass-0893cc192612ee7ea6175094faa60a4f156459b5.tar.bz2
libass-0893cc192612ee7ea6175094faa60a4f156459b5.tar.xz
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.
Diffstat (limited to 'test')
-rw-r--r--test/test.cpp5
1 files changed, 3 insertions, 2 deletions
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;
}