зеркало из https://github.com/mozilla/moz-skia.git
use SKIRect::centerX,Y
git-svn-id: http://skia.googlecode.com/svn/trunk@6374 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
Родитель
1ea95be560
Коммит
3fb91a1fe9
|
@ -67,8 +67,8 @@ static void dump(const SkMask& mask) {
|
|||
|
||||
static void draw_nine_clipped(const SkMask& mask, const SkIRect& outerR,
|
||||
const SkIRect& clipR, SkBlitter* blitter) {
|
||||
int cx = mask.fBounds.left() + mask.fBounds.right() >> 1;
|
||||
int cy = mask.fBounds.top() + mask.fBounds.bottom() >> 1;
|
||||
int cx = mask.fBounds.centerX();
|
||||
int cy = mask.fBounds.centerY();
|
||||
SkMask m;
|
||||
|
||||
// top-left
|
||||
|
|
Загрузка…
Ссылка в новой задаче