From 08106e7a924f6294966597228c0b20c6d86c279f Mon Sep 17 00:00:00 2001 From: houzh <13923402541@gitee.com> Date: Sat, 12 Feb 2022 09:42:34 +0000 Subject: [PATCH] fix ninepatchdrawable,allways fallinto mirror drawings --- src/gui/drawables/ninepatchdrawable.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/drawables/ninepatchdrawable.cc b/src/gui/drawables/ninepatchdrawable.cc index 451a24d4..1a3e4228 100755 --- a/src/gui/drawables/ninepatchdrawable.cc +++ b/src/gui/drawables/ninepatchdrawable.cc @@ -214,7 +214,7 @@ std::shared_ptrNinePatchDrawable::getConstantState(){ void NinePatchDrawable::draw(Canvas&canvas){ if(mNinePatchState->mNinePatch){ canvas.save(); - if(needsMirroring()||1){ + if(needsMirroring()){ const float cx=mBounds.left+mBounds.width/2.f; const float cy=mBounds.left+mBounds.height/2.f; canvas.scale(-1.f,1.f);