diff options
Diffstat (limited to 'src/FbTk/ImageControl.cc')
-rw-r--r-- | src/FbTk/ImageControl.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/FbTk/ImageControl.cc b/src/FbTk/ImageControl.cc index 13d6ec3..00f566d 100644 --- a/src/FbTk/ImageControl.cc +++ b/src/FbTk/ImageControl.cc | |||
@@ -381,10 +381,10 @@ void ImageControl::getGradientBuffers(unsigned int w, | |||
381 | unsigned int **ybuf) { | 381 | unsigned int **ybuf) { |
382 | 382 | ||
383 | if (w > grad_xbuffer.size()) | 383 | if (w > grad_xbuffer.size()) |
384 | grad_xbuffer.resize(w * 3); | 384 | grad_xbuffer.resize(w); |
385 | 385 | ||
386 | if (h > grad_ybuffer.size()) | 386 | if (h > grad_ybuffer.size()) |
387 | grad_ybuffer.resize(h * 3); | 387 | grad_ybuffer.resize(h); |
388 | 388 | ||
389 | *xbuf = &grad_xbuffer[0]; | 389 | *xbuf = &grad_xbuffer[0]; |
390 | *ybuf = &grad_ybuffer[0]; | 390 | *ybuf = &grad_ybuffer[0]; |