From 12e28f48771c23798b0285c1aa8a1102ec1d11e9 Mon Sep 17 00:00:00 2001 From: The Android Open Source Project Date: Thu, 5 Mar 2009 14:34:35 -0800 Subject: [PATCH] auto import from //depot/cupcake/@136594 --- Images.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Images.cpp b/Images.cpp index edb12ea..0a4c68b 100644 --- a/Images.cpp +++ b/Images.cpp @@ -332,8 +332,8 @@ static status_t do_9patch(const char* imageName, image_info* image) int H = image->height; int i, j; - int maxSizeXDivs = (W / 2 + 1) * sizeof(int32_t); - int maxSizeYDivs = (H / 2 + 1) * sizeof(int32_t); + int maxSizeXDivs = W * sizeof(int32_t); + int maxSizeYDivs = H * sizeof(int32_t); int32_t* xDivs = (int32_t*) malloc(maxSizeXDivs); int32_t* yDivs = (int32_t*) malloc(maxSizeYDivs); uint8_t numXDivs = 0; -- 2.45.2