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/D3DXImage.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'Stars45/D3DXImage.cpp') 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); -- cgit v1.1