diff options
Diffstat (limited to 'src/lolwut.c')
-rw-r--r-- | src/lolwut.c | 4 |
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; } |