mirror of
https://gitee.com/houstudio/Cdroid.git
synced 2024-12-06 06:08:24 +08:00
TextView add shadow support
This commit is contained in:
parent
3fdb1eadd3
commit
6afd464ace
@ -2199,7 +2199,7 @@ void TextView::onDraw(Canvas& canvas) {
|
||||
}
|
||||
|
||||
const int cursorOffsetVertical = voffsetCursor - voffsetText;
|
||||
if( (mShadowDx>0.05f)||(mShadowDy>0.05f)){
|
||||
if( (std::abs(mShadowDx)>0.05f)||(std::abs(mShadowDy)>0.05f)){
|
||||
canvas.set_color(mShadowColor);
|
||||
canvas.translate(mShadowDx,mShadowDy);
|
||||
layout->draw(canvas);
|
||||
|
Loading…
Reference in New Issue
Block a user