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:
@@ -1607,7 +1607,7 @@ Painter::_DrawBitmapBilinearCopy32(agg::rendering_buffer& srcBuffer,
|
|||||||
};
|
};
|
||||||
|
|
||||||
//#define FILTER_INFOS_ON_HEAP
|
//#define FILTER_INFOS_ON_HEAP
|
||||||
#if FILTER_INFOS_ON_HEAP
|
#ifdef FILTER_INFOS_ON_HEAP
|
||||||
FilterInfo* xWeights = new (nothrow) FilterInfo[dstWidth];
|
FilterInfo* xWeights = new (nothrow) FilterInfo[dstWidth];
|
||||||
FilterInfo* yWeights = new (nothrow) FilterInfo[dstHeight];
|
FilterInfo* yWeights = new (nothrow) FilterInfo[dstHeight];
|
||||||
if (xWeights == NULL || yWeights == NULL) {
|
if (xWeights == NULL || yWeights == NULL) {
|
||||||
@@ -1771,7 +1771,7 @@ Painter::_DrawBitmapBilinearCopy32(agg::rendering_buffer& srcBuffer,
|
|||||||
}
|
}
|
||||||
} while (fBaseRenderer.next_clip_box());
|
} while (fBaseRenderer.next_clip_box());
|
||||||
|
|
||||||
#if FILTER_INFOS_ON_HEAP
|
#ifdef FILTER_INFOS_ON_HEAP
|
||||||
delete[] xWeights;
|
delete[] xWeights;
|
||||||
delete[] yWeights;
|
delete[] yWeights;
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user