Use #ifdef instead of #if

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@26657 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Stephan Aßmus
2008-07-28 12:01:15 +00:00
parent 28291e331b
commit 7832e54913
+2 -2
View File
@@ -1607,7 +1607,7 @@ Painter::_DrawBitmapBilinearCopy32(agg::rendering_buffer& srcBuffer,
};
//#define FILTER_INFOS_ON_HEAP
#if FILTER_INFOS_ON_HEAP
#ifdef FILTER_INFOS_ON_HEAP
FilterInfo* xWeights = new (nothrow) FilterInfo[dstWidth];
FilterInfo* yWeights = new (nothrow) FilterInfo[dstHeight];
if (xWeights == NULL || yWeights == NULL) {
@@ -1771,7 +1771,7 @@ Painter::_DrawBitmapBilinearCopy32(agg::rendering_buffer& srcBuffer,
}
} while (fBaseRenderer.next_clip_box());
#if FILTER_INFOS_ON_HEAP
#ifdef FILTER_INFOS_ON_HEAP
delete[] xWeights;
delete[] yWeights;
#endif