diff options
Diffstat (limited to 'src/FbTk/TextureRender.cc')
-rw-r--r-- | src/FbTk/TextureRender.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/FbTk/TextureRender.cc b/src/FbTk/TextureRender.cc index 40a7e72..f1f1103 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.4 2003/08/12 11:44:41 fluxgen Exp $ | 25 | // $Id: TextureRender.cc,v 1.5 2003/10/02 16:14:41 rathnor Exp $ |
26 | 26 | ||
27 | #include "TextureRender.hh" | 27 | #include "TextureRender.hh" |
28 | 28 | ||
@@ -57,7 +57,7 @@ TextureRender::TextureRender(ImageControl &imgctrl, | |||
57 | height = 3200; | 57 | height = 3200; |
58 | } | 58 | } |
59 | 59 | ||
60 | red = new (nothrow) unsigned char[width * height]; | 60 | red = new unsigned char[width * height]; |
61 | if (red == 0) { | 61 | if (red == 0) { |
62 | char sbuf[128]; | 62 | char sbuf[128]; |
63 | sprintf(sbuf, "%d", width*height); | 63 | sprintf(sbuf, "%d", width*height); |
@@ -65,14 +65,14 @@ TextureRender::TextureRender(ImageControl &imgctrl, | |||
65 | } | 65 | } |
66 | 66 | ||
67 | 67 | ||
68 | green = new (nothrow) unsigned char[width * height]; | 68 | green = new unsigned char[width * height]; |
69 | if (green == 0) { | 69 | if (green == 0) { |
70 | char sbuf[128]; | 70 | char sbuf[128]; |
71 | sprintf(sbuf, "%d", width*height); | 71 | sprintf(sbuf, "%d", width*height); |
72 | throw string("TextureRender::TextureRender(): Out of memory while allocating green buffer. size " + string(sbuf)); | 72 | throw string("TextureRender::TextureRender(): Out of memory while allocating green buffer. size " + string(sbuf)); |
73 | } | 73 | } |
74 | 74 | ||
75 | blue = new (nothrow) unsigned char[width * height]; | 75 | blue = new unsigned char[width * height]; |
76 | if (blue == 0) { | 76 | if (blue == 0) { |
77 | char sbuf[128]; | 77 | char sbuf[128]; |
78 | sprintf(sbuf, "%d", width*height); | 78 | sprintf(sbuf, "%d", width*height); |