summaryrefslogtreecommitdiffhomepage
path: root/Stars45/Bmp.cpp
diff options
context:
space:
mode:
authorAki <please@ignore.pl>2022-03-27 17:42:26 +0200
committerAki <please@ignore.pl>2022-03-27 17:42:26 +0200
commita12e588079700d55a0b788fea2df7727c2e41f52 (patch)
tree690072569624c73af5043b3619acaab4d298b1fa /Stars45/Bmp.cpp
parent72bb517271dad40a440533ad0796a88247011199 (diff)
downloadstarshatter-a12e588079700d55a0b788fea2df7727c2e41f52.zip
starshatter-a12e588079700d55a0b788fea2df7727c2e41f52.tar.gz
starshatter-a12e588079700d55a0b788fea2df7727c2e41f52.tar.bz2
Removed MemDebug from FoundationEx
Diffstat (limited to 'Stars45/Bmp.cpp')
-rw-r--r--Stars45/Bmp.cpp13
1 files changed, 7 insertions, 6 deletions
diff --git a/Stars45/Bmp.cpp b/Stars45/Bmp.cpp
index 19711a5..345b9eb 100644
--- a/Stars45/Bmp.cpp
+++ b/Stars45/Bmp.cpp
@@ -12,13 +12,14 @@
*/
-#include "MemDebug.h"
#include "Bmp.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
+#include "Types.h"
+
// +--------------------------------------------------------------------+
BmpImage::BmpImage()
@@ -48,7 +49,7 @@ BmpImage::BmpImage(short w, short h, unsigned long* hibits)
int pixels = width * height;
- image = new(__FILE__,__LINE__) DWORD [pixels];
+ image = new DWORD [pixels];
if (image && pixels) {
for (int i = 0; i < pixels; i++)
@@ -96,7 +97,7 @@ int BmpImage::Load(char *filename)
int pixels = width*height;
delete [] image;
- image = new(__FILE__,__LINE__) DWORD[pixels];
+ image = new DWORD[pixels];
if (image == NULL)
return BMP_NOMEM;
@@ -115,7 +116,7 @@ int BmpImage::Load(char *filename)
int pixels = width*height;
delete [] image;
- image = new(__FILE__,__LINE__) DWORD[pixels];
+ image = new DWORD[pixels];
if (image == NULL)
return BMP_NOMEM;
@@ -167,7 +168,7 @@ int BmpImage::LoadBuffer(unsigned char* buf, int len)
int pixels = width*height;
delete [] image;
- image = new(__FILE__,__LINE__) DWORD[pixels];
+ image = new DWORD[pixels];
if (image == NULL)
return BMP_NOMEM;
@@ -186,7 +187,7 @@ int BmpImage::LoadBuffer(unsigned char* buf, int len)
int pixels = width*height;
delete [] image;
- image = new(__FILE__,__LINE__) DWORD[pixels];
+ image = new DWORD[pixels];
if (image == NULL)
return BMP_NOMEM;