summaryrefslogtreecommitdiffhomepage
path: root/Stars45/PCX.CPP
diff options
context:
space:
mode:
Diffstat (limited to 'Stars45/PCX.CPP')
-rw-r--r--Stars45/PCX.CPP13
1 files changed, 6 insertions, 7 deletions
diff --git a/Stars45/PCX.CPP b/Stars45/PCX.CPP
index 2337be2..b1d8656 100644
--- a/Stars45/PCX.CPP
+++ b/Stars45/PCX.CPP
@@ -12,7 +12,6 @@
*/
-#include "MemDebug.h"
#include "Pcx.h"
#include <stdio.h>
@@ -108,7 +107,7 @@ PcxImage::PcxImage(short w, short h, unsigned char* bits, unsigned char* colors)
height = h;
imagebytes = width * height;
- bitmap = new(__FILE__,__LINE__) unsigned char [imagebytes];
+ bitmap = new unsigned char [imagebytes];
if (bitmap) {
for (unsigned long i = 0; i < imagebytes; i++)
@@ -201,7 +200,7 @@ PcxImage::PcxImage(short w, short h, unsigned long* hibits)
height = h;
imagebytes = width * height;
- himap = new(__FILE__,__LINE__) unsigned long [imagebytes];
+ himap = new unsigned long [imagebytes];
if (himap) {
for (unsigned long i = 0; i < imagebytes; i++)
@@ -249,7 +248,7 @@ int PcxImage::Load(char *filename)
delete [] himap; himap = 0;
delete [] bitmap; bitmap = 0;
- himap = new(__FILE__,__LINE__) unsigned long [imagebytes];
+ himap = new unsigned long [imagebytes];
if (himap == NULL)
return PCX_NOMEM;
@@ -288,7 +287,7 @@ int PcxImage::Load(char *filename)
delete [] himap; himap = 0;
delete [] bitmap; bitmap = 0;
- himap = new(__FILE__,__LINE__) unsigned long [imagebytes];
+ himap = new unsigned long [imagebytes];
if (himap == NULL)
return PCX_NOMEM;
@@ -356,7 +355,7 @@ int PcxImage::LoadBuffer(unsigned char* buf, int len)
delete [] himap; himap = 0;
delete [] bitmap; bitmap = 0;
- himap = new(__FILE__,__LINE__) unsigned long [imagebytes];
+ himap = new unsigned long [imagebytes];
if (himap == NULL)
return PCX_NOMEM;
@@ -394,7 +393,7 @@ int PcxImage::LoadBuffer(unsigned char* buf, int len)
delete [] himap; himap = 0;
delete [] bitmap; bitmap = 0;
- himap = new(__FILE__,__LINE__) unsigned long [imagebytes];
+ himap = new unsigned long [imagebytes];
if (himap == NULL)
return PCX_NOMEM;