< prev index next >

src/java.desktop/share/native/common/awt/utility/rect.c

Print this page

        

*** 74,84 **** /* check if the previous scanline is exactly the same, merge if so (this is the only optimization we can use for YXBanded rectangles, and win32 supports YXBanded only */ ! length = pThis - pLine; if (pPrevLine && pLine - pPrevLine == length) { for (i = 0; i < length && RECT_EQ_X(pPrevLine[i], pLine[i]); ++i) { } if (i == pLine - pPrevLine) { // do merge --- 74,84 ---- /* check if the previous scanline is exactly the same, merge if so (this is the only optimization we can use for YXBanded rectangles, and win32 supports YXBanded only */ ! length = (int)(pThis - pLine); if (pPrevLine && pLine - pPrevLine == length) { for (i = 0; i < length && RECT_EQ_X(pPrevLine[i], pLine[i]); ++i) { } if (i == pLine - pPrevLine) { // do merge
*** 92,102 **** /* or else use the generated scanline */ pPrevLine = pLine; } ! return pThis - pFirst; } #if defined(__cplusplus) } #endif --- 92,102 ---- /* or else use the generated scanline */ pPrevLine = pLine; } ! return (int)(pThis - pFirst); } #if defined(__cplusplus) } #endif
< prev index next >