mirror of
https://github.com/X11Libre/xserver.git
synced 2026-10-26 01:59:57 +00:00
fb: avoid undefined left shift in line drawing
This commit is contained in:
parent
a8192aa709
commit
40affea2b9
1 changed files with 2 additions and 2 deletions
|
|
@ -716,7 +716,7 @@ POLYLINE(DrawablePtr pDrawable,
|
|||
}
|
||||
e = -len;
|
||||
e1 <<= 1;
|
||||
e3 = e << 1;
|
||||
e3 = e * 2;
|
||||
FIXUP_ERROR(e, octant, bias);
|
||||
if (and == 0) {
|
||||
while (len--) {
|
||||
|
|
@ -875,7 +875,7 @@ POLYSEGMENT(DrawablePtr pDrawable, GCPtr pGC, int nseg, xSegment * pseg)
|
|||
}
|
||||
e = -len;
|
||||
e1 <<= 1;
|
||||
e3 = e << 1;
|
||||
e3 = e * 2;
|
||||
FIXUP_ERROR(e, octant, bias);
|
||||
if (!capNotLast)
|
||||
len++;
|
||||
|
|
|
|||
Loading…
Reference in a new issue