Annotation of /trunk/xorg-server/patches/xorg-server-1.0.x-mitri.diff
Parent Directory | Revision Log
Revision 153 -
(hide annotations)
(download)
Tue May 8 20:52:56 2007 UTC (17 years ago) by niro
File size: 807 byte(s)
Tue May 8 20:52:56 2007 UTC (17 years ago) by niro
File size: 807 byte(s)
-import
1 | niro | 153 | Index: xorg/render/mitri.c |
2 | =================================================================== | ||
3 | RCS file: /cvs/xorg/xserver/xorg/render/mitri.c,v | ||
4 | retrieving revision 1.5 | ||
5 | diff -u -r1.5 mitri.c | ||
6 | --- xorg/render/mitri.c 3 Jul 2005 07:02:08 -0000 1.5 | ||
7 | +++ xorg/render/mitri.c 30 Apr 2006 20:29:53 -0000 | ||
8 | @@ -145,7 +145,7 @@ | ||
9 | if (npoint < 3) | ||
10 | return; | ||
11 | ntri = npoint - 2; | ||
12 | - tris = ALLOCATE_LOCAL (ntri & sizeof (xTriangle)); | ||
13 | + tris = ALLOCATE_LOCAL (ntri * sizeof (xTriangle)); | ||
14 | if (!tris) | ||
15 | return; | ||
16 | for (tri = tris; npoint >= 3; npoint--, points++, tri++) | ||
17 | @@ -177,7 +177,7 @@ | ||
18 | if (npoint < 3) | ||
19 | return; | ||
20 | ntri = npoint - 2; | ||
21 | - tris = ALLOCATE_LOCAL (ntri & sizeof (xTriangle)); | ||
22 | + tris = ALLOCATE_LOCAL (ntri * sizeof (xTriangle)); | ||
23 | if (!tris) | ||
24 | return; | ||
25 | first = points++; |