From a12e588079700d55a0b788fea2df7727c2e41f52 Mon Sep 17 00:00:00 2001 From: Aki Date: Sun, 27 Mar 2022 17:42:26 +0200 Subject: Removed MemDebug from FoundationEx --- Stars45/Bmp.cpp | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'Stars45/Bmp.cpp') 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 #include #include +#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; -- cgit v1.1