diff options
Diffstat (limited to 'Stars45/Bmp.cpp')
-rw-r--r-- | Stars45/Bmp.cpp | 13 |
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; |