Fix rendering
This commit is contained in:
parent
0b89a61d23
commit
5c21ea5ce7
1 changed files with 1 additions and 1 deletions
|
@ -254,7 +254,7 @@ public class TextRenderer {
|
||||||
Bitmap ico = RenderingIcons.getIcon(context, text.shieldRes);
|
Bitmap ico = RenderingIcons.getIcon(context, text.shieldRes);
|
||||||
if (ico != null) {
|
if (ico != null) {
|
||||||
float left = text.centerX - ico.getWidth() / 2 * coef - 0.5f;
|
float left = text.centerX - ico.getWidth() / 2 * coef - 0.5f;
|
||||||
float top = text.centerY - ico.getHeight() / 2 * coef - rc.getDensityValue(4.5f);
|
float top = text.centerY - ico.getHeight() / 2 * coef - paintText.descent() - 0.5f;
|
||||||
if(rc.screenDensityRatio != 1f){
|
if(rc.screenDensityRatio != 1f){
|
||||||
RectF rf = new RectF(left, top, left + ico.getWidth() * coef,
|
RectF rf = new RectF(left, top, left + ico.getWidth() * coef,
|
||||||
top + ico.getHeight() * coef);
|
top + ico.getHeight() * coef);
|
||||||
|
|
Loading…
Reference in a new issue