mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-02-11 06:00:31 +01:00
miext: Remove if check which is always true
In both cases we check for width > 0 just above, and the variable is not modified between the checks, so the condition is always true. Signed-off-by: Povilas Kanapickas <povilas@radix.lt>
This commit is contained in:
parent
99e7ccffb3
commit
ba51acb1de
1 changed files with 2 additions and 8 deletions
|
|
@ -1243,10 +1243,7 @@ RootlessPolyText8(DrawablePtr dst, GCPtr pGC,
|
|||
box.x2 = dst->x + x + FONTMAXBOUNDS(pGC->font, rightSideBearing);
|
||||
|
||||
if (count > 1) {
|
||||
if (width > 0)
|
||||
box.x2 += width;
|
||||
else
|
||||
box.x1 += width;
|
||||
box.x2 += width;
|
||||
}
|
||||
|
||||
box.y1 = dst->y + y - FONTMAXBOUNDS(pGC->font, ascent);
|
||||
|
|
@ -1334,10 +1331,7 @@ RootlessPolyText16(DrawablePtr dst, GCPtr pGC,
|
|||
box.x2 = dst->x + x + FONTMAXBOUNDS(pGC->font, rightSideBearing);
|
||||
|
||||
if (count > 1) {
|
||||
if (width > 0)
|
||||
box.x2 += width;
|
||||
else
|
||||
box.x1 += width;
|
||||
box.x2 += width;
|
||||
}
|
||||
|
||||
box.y1 = dst->y + y - FONTMAXBOUNDS(pGC->font, ascent);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue