Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
933ec96a
Commit
933ec96a
authored
Oct 31, 2008
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Oct 31, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdi32: Don't cast NULL.
parent
169a4aaa
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
10 deletions
+10
-10
region.c
dlls/gdi32/region.c
+10
-10
No files found.
dlls/gdi32/region.c
View file @
933ec96a
...
@@ -2407,14 +2407,14 @@ static void REGION_InsertEdgeInET(EdgeTable *ET, EdgeTableEntry *ETE,
...
@@ -2407,14 +2407,14 @@ static void REGION_InsertEdgeInET(EdgeTable *ET, EdgeTableEntry *ETE,
return
;
return
;
}
}
(
*
SLLBlock
)
->
next
=
tmpSLLBlock
;
(
*
SLLBlock
)
->
next
=
tmpSLLBlock
;
tmpSLLBlock
->
next
=
(
ScanLineListBlock
*
)
NULL
;
tmpSLLBlock
->
next
=
NULL
;
*
SLLBlock
=
tmpSLLBlock
;
*
SLLBlock
=
tmpSLLBlock
;
*
iSLLBlock
=
0
;
*
iSLLBlock
=
0
;
}
}
pSLL
=
&
((
*
SLLBlock
)
->
SLLs
[(
*
iSLLBlock
)
++
]);
pSLL
=
&
((
*
SLLBlock
)
->
SLLs
[(
*
iSLLBlock
)
++
]);
pSLL
->
next
=
pPrevSLL
->
next
;
pSLL
->
next
=
pPrevSLL
->
next
;
pSLL
->
edgelist
=
(
EdgeTableEntry
*
)
NULL
;
pSLL
->
edgelist
=
NULL
;
pPrevSLL
->
next
=
pSLL
;
pPrevSLL
->
next
=
pSLL
;
}
}
pSLL
->
scanline
=
scanline
;
pSLL
->
scanline
=
scanline
;
...
@@ -2422,7 +2422,7 @@ static void REGION_InsertEdgeInET(EdgeTable *ET, EdgeTableEntry *ETE,
...
@@ -2422,7 +2422,7 @@ static void REGION_InsertEdgeInET(EdgeTable *ET, EdgeTableEntry *ETE,
/*
/*
* now insert the edge in the right bucket
* now insert the edge in the right bucket
*/
*/
prev
=
(
EdgeTableEntry
*
)
NULL
;
prev
=
NULL
;
start
=
pSLL
->
edgelist
;
start
=
pSLL
->
edgelist
;
while
(
start
&&
(
start
->
bres
.
minor_axis
<
ETE
->
bres
.
minor_axis
))
while
(
start
&&
(
start
->
bres
.
minor_axis
<
ETE
->
bres
.
minor_axis
))
{
{
...
@@ -2475,18 +2475,18 @@ static void REGION_CreateETandAET(const INT *Count, INT nbpolygons,
...
@@ -2475,18 +2475,18 @@ static void REGION_CreateETandAET(const INT *Count, INT nbpolygons,
/*
/*
* initialize the Active Edge Table
* initialize the Active Edge Table
*/
*/
AET
->
next
=
(
EdgeTableEntry
*
)
NULL
;
AET
->
next
=
NULL
;
AET
->
back
=
(
EdgeTableEntry
*
)
NULL
;
AET
->
back
=
NULL
;
AET
->
nextWETE
=
(
EdgeTableEntry
*
)
NULL
;
AET
->
nextWETE
=
NULL
;
AET
->
bres
.
minor_axis
=
SMALL_COORDINATE
;
AET
->
bres
.
minor_axis
=
SMALL_COORDINATE
;
/*
/*
* initialize the Edge Table.
* initialize the Edge Table.
*/
*/
ET
->
scanlines
.
next
=
(
ScanLineList
*
)
NULL
;
ET
->
scanlines
.
next
=
NULL
;
ET
->
ymax
=
SMALL_COORDINATE
;
ET
->
ymax
=
SMALL_COORDINATE
;
ET
->
ymin
=
LARGE_COORDINATE
;
ET
->
ymin
=
LARGE_COORDINATE
;
pSLLBlock
->
next
=
(
ScanLineListBlock
*
)
NULL
;
pSLLBlock
->
next
=
NULL
;
EndPt
=
pts
-
1
;
EndPt
=
pts
-
1
;
for
(
poly
=
0
;
poly
<
nbpolygons
;
poly
++
)
for
(
poly
=
0
;
poly
<
nbpolygons
;
poly
++
)
...
@@ -2610,7 +2610,7 @@ static void REGION_computeWAET(EdgeTableEntry *AET)
...
@@ -2610,7 +2610,7 @@ static void REGION_computeWAET(EdgeTableEntry *AET)
register
int
inside
=
1
;
register
int
inside
=
1
;
register
int
isInside
=
0
;
register
int
isInside
=
0
;
AET
->
nextWETE
=
(
EdgeTableEntry
*
)
NULL
;
AET
->
nextWETE
=
NULL
;
pWETE
=
AET
;
pWETE
=
AET
;
AET
=
AET
->
next
;
AET
=
AET
->
next
;
while
(
AET
)
while
(
AET
)
...
@@ -2629,7 +2629,7 @@ static void REGION_computeWAET(EdgeTableEntry *AET)
...
@@ -2629,7 +2629,7 @@ static void REGION_computeWAET(EdgeTableEntry *AET)
}
}
AET
=
AET
->
next
;
AET
=
AET
->
next
;
}
}
pWETE
->
nextWETE
=
(
EdgeTableEntry
*
)
NULL
;
pWETE
->
nextWETE
=
NULL
;
}
}
/***********************************************************************
/***********************************************************************
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment