http://git.etersoft.ru/projects
/
wine
/
eterwine.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2595570
)
Fixed bug with unsigned index in decreasing loop.
author
Eric Pouech
<pouech-eric@wanadoo.fr>
Wed, 22 Dec 2004 17:16:03 +0000
(17:16 +0000)
committer
Alexandre Julliard
<julliard@winehq.org>
Wed, 22 Dec 2004 17:16:03 +0000
(17:16 +0000)
dlls/x11drv/clipping.c
patch
|
blob
|
blame
|
history
diff --git
a/dlls/x11drv/clipping.c
b/dlls/x11drv/clipping.c
index 4015d3c4645f28280fe8e46f78487f97f5788e3a..a4e91fcb969d0e85b63b8533c7f4eb626443d17b 100644
(file)
--- a/
dlls/x11drv/clipping.c
+++ b/
dlls/x11drv/clipping.c
@@
-81,14
+81,15
@@
RGNDATA *X11DRV_GetRegionData( HRGN hrgn, HDC hdc_lptodp )
if (sizeof(XRectangle) > sizeof(RECT))
{
+ int j;
/* need to start from the end */
- for (
i = data->rdh.nCount-1; i >=0; i
--)
+ for (
j = data->rdh.nCount-1; j >= 0; j
--)
{
- tmp = rect[
i
];
- xrect[
i
].x = tmp.left;
- xrect[
i
].y = tmp.top;
- xrect[
i
].width = tmp.right - tmp.left;
- xrect[
i
].height = tmp.bottom - tmp.top;
+ tmp = rect[
j
];
+ xrect[
j
].x = tmp.left;
+ xrect[
j
].y = tmp.top;
+ xrect[
j
].width = tmp.right - tmp.left;
+ xrect[
j
].height = tmp.bottom - tmp.top;
}
}
else