diff options
Diffstat (limited to 'Stars45/D3DXImage.cpp')
-rw-r--r-- | Stars45/D3DXImage.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/Stars45/D3DXImage.cpp b/Stars45/D3DXImage.cpp index 1e0a187..9ab9779 100644 --- a/Stars45/D3DXImage.cpp +++ b/Stars45/D3DXImage.cpp @@ -12,7 +12,6 @@ */ -#include "MemDebug.h" #include "D3DXImage.h" #include "VideoDX9.h" @@ -31,7 +30,7 @@ D3DXImage::D3DXImage(WORD w, WORD h, DWORD* img) int pixels = width * height; - image = new(__FILE__,__LINE__) DWORD [pixels]; + image = new DWORD [pixels]; if (image && pixels) { for (int i = 0; i < pixels; i++) @@ -62,7 +61,7 @@ bool D3DXImage::Load(char *filename) len = ftell(f); fseek(f, 0, SEEK_SET); - buf = new(__FILE__,__LINE__) BYTE[len]; + buf = new BYTE[len]; if (buf) { fread(buf, len, 1, f); @@ -129,7 +128,7 @@ bool D3DXImage::LoadBuffer(BYTE* buf, int len) if (SUCCEEDED(hr)) { // copy surface into image - image = new(__FILE__,__LINE__) DWORD[width*height]; + image = new DWORD[width*height]; if (image) { for (DWORD i = 0; i < height; i++) { BYTE* dst = (BYTE*) (image + i * width); |