mirror of
https://gitee.com/houstudio/Cdroid.git
synced 2024-11-29 18:59:14 +08:00
fix ninepatchdrawable,allways fallinto mirror drawings
This commit is contained in:
parent
e58f55684e
commit
08106e7a92
@ -214,7 +214,7 @@ std::shared_ptr<Drawable::ConstantState>NinePatchDrawable::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);
|
||||
|
Loading…
Reference in New Issue
Block a user