diff options
author | Mathias Gumz <akira at fluxbox dot org> | 2010-09-17 21:32:02 (GMT) |
---|---|---|
committer | Mathias Gumz <akira at fluxbox dot org> | 2010-09-17 21:32:02 (GMT) |
commit | 87cffef7f5d0bf960e5682fad68bd8186fc36e29 (patch) | |
tree | 2806734a239a8bee0e1cefcf733e5aced758213f /src/FbTk/ImageControl.cc | |
parent | 786eef6e39d58c590143d02f30e9949b40af1a24 (diff) | |
download | fluxbox-87cffef7f5d0bf960e5682fad68bd8186fc36e29.zip fluxbox-87cffef7f5d0bf960e5682fad68bd8186fc36e29.tar.bz2 |
request explicitly as many elements for the gradient tables as we need
the next step is to not use 'unsigned int' and then only store 'chars'
in it, maybe even using RGBA data instead of separated arrays for
r, g and b.
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]; |