summaryrefslogtreecommitdiff
path: root/src/lolwut.c
diff options
context:
space:
mode:
authorantirez <antirez@gmail.com>2019-10-07 18:24:34 +0200
committerantirez <antirez@gmail.com>2019-10-07 18:24:34 +0200
commitc10889150ef10a30edb2ba0503b06154222458df (patch)
tree8e2b9a40d5d7472ba5189afd5dd53ca6d53fd0ee /src/lolwut.c
parentf019f28e7b9f05205c02261bb3af8261869d600a (diff)
downloadredis-c10889150ef10a30edb2ba0503b06154222458df.tar.gz
LOLWUT: version 6 initial output. May change a bit.
Diffstat (limited to 'src/lolwut.c')
-rw-r--r--src/lolwut.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lolwut.c b/src/lolwut.c
index 7e2ceca78..0e1552ba0 100644
--- a/src/lolwut.c
+++ b/src/lolwut.c
@@ -90,12 +90,12 @@ void lolwutCommand(client *c) {
* canvas implementation that can be reused. */
/* Allocate and return a new canvas of the specified size. */
-lwCanvas *lwCreateCanvas(int width, int height) {
+lwCanvas *lwCreateCanvas(int width, int height, int bgcolor) {
lwCanvas *canvas = zmalloc(sizeof(*canvas));
canvas->width = width;
canvas->height = height;
canvas->pixels = zmalloc(width*height);
- memset(canvas->pixels,0,width*height);
+ memset(canvas->pixels,bgcolor,width*height);
return canvas;
}