diff options
author | Aki <please@ignore.pl> | 2022-03-27 17:42:26 +0200 |
---|---|---|
committer | Aki <please@ignore.pl> | 2022-03-27 17:42:26 +0200 |
commit | a12e588079700d55a0b788fea2df7727c2e41f52 (patch) | |
tree | 690072569624c73af5043b3619acaab4d298b1fa /Stars45/D3DXImage.cpp | |
parent | 72bb517271dad40a440533ad0796a88247011199 (diff) | |
download | starshatter-a12e588079700d55a0b788fea2df7727c2e41f52.zip starshatter-a12e588079700d55a0b788fea2df7727c2e41f52.tar.gz starshatter-a12e588079700d55a0b788fea2df7727c2e41f52.tar.bz2 |
Removed MemDebug from FoundationEx
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); |