Fix flippedness bug drawing vertical 3 part images.

Fixes #77
This commit is contained in:
Alan Rogers 2013-04-16 12:06:04 +10:00
Родитель 6b0f6ce080
Коммит 18a1f135ba
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -135,7 +135,7 @@
NSDrawThreePartImage(dstRect, leftEdge, center, rightEdge, NO, op, alpha, flipped);
} else {
// Vertical three-part image.
NSDrawThreePartImage(dstRect, topEdge, center, bottomEdge, YES, op, alpha, flipped);
NSDrawThreePartImage(dstRect, (flipped ? bottomEdge : topEdge), center, (flipped ? topEdge : bottomEdge), YES, op, alpha, flipped);
}
}