comparison src/windows/native/sun/java2d/windows/GDIRenderer.cpp @ 7441:cf14f699f36c

8009071: Improve shape handling Reviewed-by: art, mschoene
author anthony
date Thu, 18 Apr 2013 13:52:38 +0100
parents 5d7e49a3a2f9
children bedc29a6d074
comparison
equal deleted inserted replaced
5:a67561a01b40 6:c4253300914f
82 if ((close && !isclosed) || fixend) { 82 if ((close && !isclosed) || fixend) {
83 outpoints++; 83 outpoints++;
84 *pNpoints = outpoints; 84 *pNpoints = outpoints;
85 } 85 }
86 if (outpoints > POLYTEMPSIZE) { 86 if (outpoints > POLYTEMPSIZE) {
87 pPoints = (POINT *) safe_Malloc(sizeof(POINT) * outpoints); 87 pPoints = (POINT *) SAFE_SIZE_ARRAY_ALLOC(safe_Malloc, sizeof(POINT), outpoints);
88 } 88 }
89 BOOL isempty = fixend; 89 BOOL isempty = fixend;
90 for (int i = 0; i < npoints; i++) { 90 for (int i = 0; i < npoints; i++) {
91 x = xpoints[i]; 91 x = xpoints[i];
92 y = ypoints[i]; 92 y = ypoints[i];