aboutsummaryrefslogtreecommitdiff
path: root/src/FbTk
diff options
context:
space:
mode:
Diffstat (limited to 'src/FbTk')
-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);