aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorakir <akir>2004-10-06 19:19:43 (GMT)
committerakir <akir>2004-10-06 19:19:43 (GMT)
commit0e8ac3839da0cbea2ace93f31f6e58d5b574b478 (patch)
tree562881fe7acec51f5748196b48143c024c898960 /src
parent2c40517df33632f2d95f5b5bf8c2603cae5ee5f1 (diff)
downloadfluxbox_paul-0e8ac3839da0cbea2ace93f31f6e58d5b574b478.zip
fluxbox_paul-0e8ac3839da0cbea2ace93f31f6e58d5b574b478.tar.bz2
tiny forgotten thingy from the MAN :)
Diffstat (limited to 'src')
-rw-r--r--src/FbTk/TextureRender.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/FbTk/TextureRender.cc b/src/FbTk/TextureRender.cc
index c278c2a..d34aafe 100644
--- a/src/FbTk/TextureRender.cc
+++ b/src/FbTk/TextureRender.cc
@@ -22,7 +22,7 @@
22// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 22// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
23// DEALINGS IN THE SOFTWARE. 23// DEALINGS IN THE SOFTWARE.
24 24
25// $Id: TextureRender.cc,v 1.12 2004/10/06 09:30:54 fluxgen Exp $ 25// $Id: TextureRender.cc,v 1.13 2004/10/06 19:19:43 akir Exp $
26 26
27#include "TextureRender.hh" 27#include "TextureRender.hh"
28 28
@@ -99,6 +99,8 @@ Pixmap TextureRender::render(const FbTk::Texture &texture) {
99 99
100void TextureRender::allocateColorTables() { 100void TextureRender::allocateColorTables() {
101 red = new(nothrow) unsigned char[width * height]; 101 red = new(nothrow) unsigned char[width * height];
102
103 _FB_USES_NLS;
102 if (red == 0) { 104 if (red == 0) {
103 char sbuf[128]; 105 char sbuf[128];
104 sprintf(sbuf, "%d", width*height); 106 sprintf(sbuf, "%d", width*height);