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
8fd8d9e9
Commit
8fd8d9e9
authored
Mar 27, 2010
by
Mikhail Maroukhine
Committed by
Alexandre Julliard
Mar 29, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdi32: Fix compiler warnings with flag -Wcast-qual.
parent
0519c4b6
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
30 additions
and
30 deletions
+30
-30
enhmetafile.c
dlls/gdi32/enhmetafile.c
+11
-11
freetype.c
dlls/gdi32/freetype.c
+13
-13
region.c
dlls/gdi32/region.c
+6
-6
No files found.
dlls/gdi32/enhmetafile.c
View file @
8fd8d9e9
...
@@ -1077,7 +1077,7 @@ BOOL WINAPI PlayEnhMetaFileRecord(
...
@@ -1077,7 +1077,7 @@ BOOL WINAPI PlayEnhMetaFileRecord(
/* NB POINTS array doesn't start at pPolyPoly->apts it's actually
/* NB POINTS array doesn't start at pPolyPoly->apts it's actually
pPolyPoly->aPolyCounts + pPolyPoly->nPolys */
pPolyPoly->aPolyCounts + pPolyPoly->nPolys */
POINTS
*
pts
=
(
POINTS
*
)(
pPolyPoly
->
aPolyCounts
+
pPolyPoly
->
nPolys
);
const
POINTS
*
pts
=
(
const
POINTS
*
)(
pPolyPoly
->
aPolyCounts
+
pPolyPoly
->
nPolys
);
POINT
*
pt
=
HeapAlloc
(
GetProcessHeap
(),
0
,
pPolyPoly
->
cpts
*
sizeof
(
POINT
)
);
POINT
*
pt
=
HeapAlloc
(
GetProcessHeap
(),
0
,
pPolyPoly
->
cpts
*
sizeof
(
POINT
)
);
DWORD
i
;
DWORD
i
;
for
(
i
=
0
;
i
<
pPolyPoly
->
cpts
;
i
++
)
for
(
i
=
0
;
i
<
pPolyPoly
->
cpts
;
i
++
)
...
@@ -1085,7 +1085,7 @@ BOOL WINAPI PlayEnhMetaFileRecord(
...
@@ -1085,7 +1085,7 @@ BOOL WINAPI PlayEnhMetaFileRecord(
pt
[
i
].
x
=
pts
[
i
].
x
;
pt
[
i
].
x
=
pts
[
i
].
x
;
pt
[
i
].
y
=
pts
[
i
].
y
;
pt
[
i
].
y
=
pts
[
i
].
y
;
}
}
PolyPolygon
(
hdc
,
pt
,
(
INT
*
)
pPolyPoly
->
aPolyCounts
,
pPolyPoly
->
nPolys
);
PolyPolygon
(
hdc
,
pt
,
(
const
INT
*
)
pPolyPoly
->
aPolyCounts
,
pPolyPoly
->
nPolys
);
HeapFree
(
GetProcessHeap
(),
0
,
pt
);
HeapFree
(
GetProcessHeap
(),
0
,
pt
);
break
;
break
;
}
}
...
@@ -1095,7 +1095,7 @@ BOOL WINAPI PlayEnhMetaFileRecord(
...
@@ -1095,7 +1095,7 @@ BOOL WINAPI PlayEnhMetaFileRecord(
/* NB POINTS array doesn't start at pPolyPoly->apts it's actually
/* NB POINTS array doesn't start at pPolyPoly->apts it's actually
pPolyPoly->aPolyCounts + pPolyPoly->nPolys */
pPolyPoly->aPolyCounts + pPolyPoly->nPolys */
POINTS
*
pts
=
(
POINTS
*
)(
pPolyPoly
->
aPolyCounts
+
pPolyPoly
->
nPolys
);
const
POINTS
*
pts
=
(
const
POINTS
*
)(
pPolyPoly
->
aPolyCounts
+
pPolyPoly
->
nPolys
);
POINT
*
pt
=
HeapAlloc
(
GetProcessHeap
(),
0
,
pPolyPoly
->
cpts
*
sizeof
(
POINT
)
);
POINT
*
pt
=
HeapAlloc
(
GetProcessHeap
(),
0
,
pPolyPoly
->
cpts
*
sizeof
(
POINT
)
);
DWORD
i
;
DWORD
i
;
for
(
i
=
0
;
i
<
pPolyPoly
->
cpts
;
i
++
)
for
(
i
=
0
;
i
<
pPolyPoly
->
cpts
;
i
++
)
...
@@ -1218,7 +1218,7 @@ BOOL WINAPI PlayEnhMetaFileRecord(
...
@@ -1218,7 +1218,7 @@ BOOL WINAPI PlayEnhMetaFileRecord(
HRGN
hRgn
=
0
;
HRGN
hRgn
=
0
;
if
(
mr
->
nSize
>=
sizeof
(
*
lpRgn
)
+
sizeof
(
RGNDATAHEADER
))
if
(
mr
->
nSize
>=
sizeof
(
*
lpRgn
)
+
sizeof
(
RGNDATAHEADER
))
hRgn
=
ExtCreateRegion
(
&
info
->
init_transform
,
0
,
(
RGNDATA
*
)
lpRgn
->
RgnData
);
hRgn
=
ExtCreateRegion
(
&
info
->
init_transform
,
0
,
(
const
RGNDATA
*
)
lpRgn
->
RgnData
);
ExtSelectClipRgn
(
hdc
,
hRgn
,
(
INT
)(
lpRgn
->
iMode
));
ExtSelectClipRgn
(
hdc
,
hRgn
,
(
INT
)(
lpRgn
->
iMode
));
/* ExtSelectClipRgn created a copy of the region */
/* ExtSelectClipRgn created a copy of the region */
...
@@ -1281,7 +1281,7 @@ BOOL WINAPI PlayEnhMetaFileRecord(
...
@@ -1281,7 +1281,7 @@ BOOL WINAPI PlayEnhMetaFileRecord(
const
EMRPOLYPOLYLINE
*
pPolyPolyline
=
(
const
EMRPOLYPOLYLINE
*
)
mr
;
const
EMRPOLYPOLYLINE
*
pPolyPolyline
=
(
const
EMRPOLYPOLYLINE
*
)
mr
;
/* NB Points at pPolyPolyline->aPolyCounts + pPolyPolyline->nPolys */
/* NB Points at pPolyPolyline->aPolyCounts + pPolyPolyline->nPolys */
PolyPolyline
(
hdc
,
(
LPPOINT
)(
pPolyPolyline
->
aPolyCounts
+
PolyPolyline
(
hdc
,
(
const
POINT
*
)(
pPolyPolyline
->
aPolyCounts
+
pPolyPolyline
->
nPolys
),
pPolyPolyline
->
nPolys
),
pPolyPolyline
->
aPolyCounts
,
pPolyPolyline
->
aPolyCounts
,
pPolyPolyline
->
nPolys
);
pPolyPolyline
->
nPolys
);
...
@@ -1295,9 +1295,9 @@ BOOL WINAPI PlayEnhMetaFileRecord(
...
@@ -1295,9 +1295,9 @@ BOOL WINAPI PlayEnhMetaFileRecord(
/* NB Points at pPolyPolygon->aPolyCounts + pPolyPolygon->nPolys */
/* NB Points at pPolyPolygon->aPolyCounts + pPolyPolygon->nPolys */
PolyPolygon
(
hdc
,
(
LPPOINT
)(
pPolyPolygon
->
aPolyCounts
+
PolyPolygon
(
hdc
,
(
const
POINT
*
)(
pPolyPolygon
->
aPolyCounts
+
pPolyPolygon
->
nPolys
),
pPolyPolygon
->
nPolys
),
(
INT
*
)
pPolyPolygon
->
aPolyCounts
,
pPolyPolygon
->
nPolys
);
(
const
INT
*
)
pPolyPolygon
->
aPolyCounts
,
pPolyPolygon
->
nPolys
);
break
;
break
;
}
}
...
@@ -2113,7 +2113,7 @@ BOOL WINAPI PlayEnhMetaFileRecord(
...
@@ -2113,7 +2113,7 @@ BOOL WINAPI PlayEnhMetaFileRecord(
case
EMR_FILLRGN
:
case
EMR_FILLRGN
:
{
{
const
EMRFILLRGN
*
pFillRgn
=
(
const
EMRFILLRGN
*
)
mr
;
const
EMRFILLRGN
*
pFillRgn
=
(
const
EMRFILLRGN
*
)
mr
;
HRGN
hRgn
=
ExtCreateRegion
(
NULL
,
pFillRgn
->
cbRgnData
,
(
RGNDATA
*
)
pFillRgn
->
RgnData
);
HRGN
hRgn
=
ExtCreateRegion
(
NULL
,
pFillRgn
->
cbRgnData
,
(
const
RGNDATA
*
)
pFillRgn
->
RgnData
);
FillRgn
(
hdc
,
FillRgn
(
hdc
,
hRgn
,
hRgn
,
(
handletable
->
objectHandle
)[
pFillRgn
->
ihBrush
]);
(
handletable
->
objectHandle
)[
pFillRgn
->
ihBrush
]);
...
@@ -2124,7 +2124,7 @@ BOOL WINAPI PlayEnhMetaFileRecord(
...
@@ -2124,7 +2124,7 @@ BOOL WINAPI PlayEnhMetaFileRecord(
case
EMR_FRAMERGN
:
case
EMR_FRAMERGN
:
{
{
const
EMRFRAMERGN
*
pFrameRgn
=
(
const
EMRFRAMERGN
*
)
mr
;
const
EMRFRAMERGN
*
pFrameRgn
=
(
const
EMRFRAMERGN
*
)
mr
;
HRGN
hRgn
=
ExtCreateRegion
(
NULL
,
pFrameRgn
->
cbRgnData
,
(
RGNDATA
*
)
pFrameRgn
->
RgnData
);
HRGN
hRgn
=
ExtCreateRegion
(
NULL
,
pFrameRgn
->
cbRgnData
,
(
const
RGNDATA
*
)
pFrameRgn
->
RgnData
);
FrameRgn
(
hdc
,
FrameRgn
(
hdc
,
hRgn
,
hRgn
,
(
handletable
->
objectHandle
)[
pFrameRgn
->
ihBrush
],
(
handletable
->
objectHandle
)[
pFrameRgn
->
ihBrush
],
...
@@ -2137,7 +2137,7 @@ BOOL WINAPI PlayEnhMetaFileRecord(
...
@@ -2137,7 +2137,7 @@ BOOL WINAPI PlayEnhMetaFileRecord(
case
EMR_INVERTRGN
:
case
EMR_INVERTRGN
:
{
{
const
EMRINVERTRGN
*
pInvertRgn
=
(
const
EMRINVERTRGN
*
)
mr
;
const
EMRINVERTRGN
*
pInvertRgn
=
(
const
EMRINVERTRGN
*
)
mr
;
HRGN
hRgn
=
ExtCreateRegion
(
NULL
,
pInvertRgn
->
cbRgnData
,
(
RGNDATA
*
)
pInvertRgn
->
RgnData
);
HRGN
hRgn
=
ExtCreateRegion
(
NULL
,
pInvertRgn
->
cbRgnData
,
(
const
RGNDATA
*
)
pInvertRgn
->
RgnData
);
InvertRgn
(
hdc
,
hRgn
);
InvertRgn
(
hdc
,
hRgn
);
DeleteObject
(
hRgn
);
DeleteObject
(
hRgn
);
break
;
break
;
...
@@ -2146,7 +2146,7 @@ BOOL WINAPI PlayEnhMetaFileRecord(
...
@@ -2146,7 +2146,7 @@ BOOL WINAPI PlayEnhMetaFileRecord(
case
EMR_PAINTRGN
:
case
EMR_PAINTRGN
:
{
{
const
EMRPAINTRGN
*
pPaintRgn
=
(
const
EMRPAINTRGN
*
)
mr
;
const
EMRPAINTRGN
*
pPaintRgn
=
(
const
EMRPAINTRGN
*
)
mr
;
HRGN
hRgn
=
ExtCreateRegion
(
NULL
,
pPaintRgn
->
cbRgnData
,
(
RGNDATA
*
)
pPaintRgn
->
RgnData
);
HRGN
hRgn
=
ExtCreateRegion
(
NULL
,
pPaintRgn
->
cbRgnData
,
(
const
RGNDATA
*
)
pPaintRgn
->
RgnData
);
PaintRgn
(
hdc
,
hRgn
);
PaintRgn
(
hdc
,
hRgn
);
DeleteObject
(
hRgn
);
DeleteObject
(
hRgn
);
break
;
break
;
...
...
dlls/gdi32/freetype.c
View file @
8fd8d9e9
...
@@ -4248,7 +4248,7 @@ static INT GSUB_is_glyph_covered(LPCVOID table , UINT glyph)
...
@@ -4248,7 +4248,7 @@ static INT GSUB_is_glyph_covered(LPCVOID table , UINT glyph)
const
GSUB_CoverageFormat2
*
cf2
;
const
GSUB_CoverageFormat2
*
cf2
;
int
i
;
int
i
;
int
count
;
int
count
;
cf2
=
(
GSUB_CoverageFormat2
*
)
cf1
;
cf2
=
(
const
GSUB_CoverageFormat2
*
)
cf1
;
count
=
GET_BE_WORD
(
cf2
->
RangeCount
);
count
=
GET_BE_WORD
(
cf2
->
RangeCount
);
TRACE
(
"Coverage Format 2, %i ranges
\n
"
,
count
);
TRACE
(
"Coverage Format 2, %i ranges
\n
"
,
count
);
...
@@ -4276,7 +4276,7 @@ static const GSUB_Script* GSUB_get_script_table( const GSUB_Header* header, cons
...
@@ -4276,7 +4276,7 @@ static const GSUB_Script* GSUB_get_script_table( const GSUB_Header* header, cons
const
GSUB_ScriptList
*
script
;
const
GSUB_ScriptList
*
script
;
const
GSUB_Script
*
deflt
=
NULL
;
const
GSUB_Script
*
deflt
=
NULL
;
int
i
;
int
i
;
script
=
(
GSUB_ScriptList
*
)((
LPBYTE
)
header
+
GET_BE_WORD
(
header
->
ScriptList
));
script
=
(
const
GSUB_ScriptList
*
)((
const
BYTE
*
)
header
+
GET_BE_WORD
(
header
->
ScriptList
));
TRACE
(
"%i scripts in this font
\n
"
,
GET_BE_WORD
(
script
->
ScriptCount
));
TRACE
(
"%i scripts in this font
\n
"
,
GET_BE_WORD
(
script
->
ScriptCount
));
for
(
i
=
0
;
i
<
GET_BE_WORD
(
script
->
ScriptCount
);
i
++
)
for
(
i
=
0
;
i
<
GET_BE_WORD
(
script
->
ScriptCount
);
i
++
)
...
@@ -4285,7 +4285,7 @@ static const GSUB_Script* GSUB_get_script_table( const GSUB_Header* header, cons
...
@@ -4285,7 +4285,7 @@ static const GSUB_Script* GSUB_get_script_table( const GSUB_Header* header, cons
int
offset
;
int
offset
;
offset
=
GET_BE_WORD
(
script
->
ScriptRecord
[
i
].
Script
);
offset
=
GET_BE_WORD
(
script
->
ScriptRecord
[
i
].
Script
);
scr
=
(
GSUB_Script
*
)((
LPBYTE
)
script
+
offset
);
scr
=
(
const
GSUB_Script
*
)((
const
BYTE
*
)
script
+
offset
);
if
(
strncmp
(
script
->
ScriptRecord
[
i
].
ScriptTag
,
tag
,
4
)
==
0
)
if
(
strncmp
(
script
->
ScriptRecord
[
i
].
ScriptTag
,
tag
,
4
)
==
0
)
return
scr
;
return
scr
;
...
@@ -4306,7 +4306,7 @@ static const GSUB_LangSys* GSUB_get_lang_table( const GSUB_Script* script, const
...
@@ -4306,7 +4306,7 @@ static const GSUB_LangSys* GSUB_get_lang_table( const GSUB_Script* script, const
for
(
i
=
0
;
i
<
GET_BE_WORD
(
script
->
LangSysCount
)
;
i
++
)
for
(
i
=
0
;
i
<
GET_BE_WORD
(
script
->
LangSysCount
)
;
i
++
)
{
{
offset
=
GET_BE_WORD
(
script
->
LangSysRecord
[
i
].
LangSys
);
offset
=
GET_BE_WORD
(
script
->
LangSysRecord
[
i
].
LangSys
);
Lang
=
(
GSUB_LangSys
*
)((
LPBYTE
)
script
+
offset
);
Lang
=
(
const
GSUB_LangSys
*
)((
const
BYTE
*
)
script
+
offset
);
if
(
strncmp
(
script
->
LangSysRecord
[
i
].
LangSysTag
,
tag
,
4
)
==
0
)
if
(
strncmp
(
script
->
LangSysRecord
[
i
].
LangSysTag
,
tag
,
4
)
==
0
)
return
Lang
;
return
Lang
;
...
@@ -4314,7 +4314,7 @@ static const GSUB_LangSys* GSUB_get_lang_table( const GSUB_Script* script, const
...
@@ -4314,7 +4314,7 @@ static const GSUB_LangSys* GSUB_get_lang_table( const GSUB_Script* script, const
offset
=
GET_BE_WORD
(
script
->
DefaultLangSys
);
offset
=
GET_BE_WORD
(
script
->
DefaultLangSys
);
if
(
offset
)
if
(
offset
)
{
{
Lang
=
(
GSUB_LangSys
*
)((
LPBYTE
)
script
+
offset
);
Lang
=
(
const
GSUB_LangSys
*
)((
const
BYTE
*
)
script
+
offset
);
return
Lang
;
return
Lang
;
}
}
return
NULL
;
return
NULL
;
...
@@ -4324,7 +4324,7 @@ static const GSUB_Feature * GSUB_get_feature(const GSUB_Header *header, const GS
...
@@ -4324,7 +4324,7 @@ static const GSUB_Feature * GSUB_get_feature(const GSUB_Header *header, const GS
{
{
int
i
;
int
i
;
const
GSUB_FeatureList
*
feature
;
const
GSUB_FeatureList
*
feature
;
feature
=
(
GSUB_FeatureList
*
)((
LPBYTE
)
header
+
GET_BE_WORD
(
header
->
FeatureList
));
feature
=
(
const
GSUB_FeatureList
*
)((
const
BYTE
*
)
header
+
GET_BE_WORD
(
header
->
FeatureList
));
TRACE
(
"%i features
\n
"
,
GET_BE_WORD
(
lang
->
FeatureCount
));
TRACE
(
"%i features
\n
"
,
GET_BE_WORD
(
lang
->
FeatureCount
));
for
(
i
=
0
;
i
<
GET_BE_WORD
(
lang
->
FeatureCount
);
i
++
)
for
(
i
=
0
;
i
<
GET_BE_WORD
(
lang
->
FeatureCount
);
i
++
)
...
@@ -4333,7 +4333,7 @@ static const GSUB_Feature * GSUB_get_feature(const GSUB_Header *header, const GS
...
@@ -4333,7 +4333,7 @@ static const GSUB_Feature * GSUB_get_feature(const GSUB_Header *header, const GS
if
(
strncmp
(
feature
->
FeatureRecord
[
index
].
FeatureTag
,
tag
,
4
)
==
0
)
if
(
strncmp
(
feature
->
FeatureRecord
[
index
].
FeatureTag
,
tag
,
4
)
==
0
)
{
{
const
GSUB_Feature
*
feat
;
const
GSUB_Feature
*
feat
;
feat
=
(
GSUB_Feature
*
)((
LPBYTE
)
feature
+
GET_BE_WORD
(
feature
->
FeatureRecord
[
index
].
Feature
));
feat
=
(
const
GSUB_Feature
*
)((
const
BYTE
*
)
feature
+
GET_BE_WORD
(
feature
->
FeatureRecord
[
index
].
Feature
));
return
feat
;
return
feat
;
}
}
}
}
...
@@ -4345,14 +4345,14 @@ static FT_UInt GSUB_apply_feature(const GSUB_Header * header, const GSUB_Feature
...
@@ -4345,14 +4345,14 @@ static FT_UInt GSUB_apply_feature(const GSUB_Header * header, const GSUB_Feature
int
i
;
int
i
;
int
offset
;
int
offset
;
const
GSUB_LookupList
*
lookup
;
const
GSUB_LookupList
*
lookup
;
lookup
=
(
GSUB_LookupList
*
)((
LPBYTE
)
header
+
GET_BE_WORD
(
header
->
LookupList
));
lookup
=
(
const
GSUB_LookupList
*
)((
const
BYTE
*
)
header
+
GET_BE_WORD
(
header
->
LookupList
));
TRACE
(
"%i lookups
\n
"
,
GET_BE_WORD
(
feature
->
LookupCount
));
TRACE
(
"%i lookups
\n
"
,
GET_BE_WORD
(
feature
->
LookupCount
));
for
(
i
=
0
;
i
<
GET_BE_WORD
(
feature
->
LookupCount
);
i
++
)
for
(
i
=
0
;
i
<
GET_BE_WORD
(
feature
->
LookupCount
);
i
++
)
{
{
const
GSUB_LookupTable
*
look
;
const
GSUB_LookupTable
*
look
;
offset
=
GET_BE_WORD
(
lookup
->
Lookup
[
GET_BE_WORD
(
feature
->
LookupListIndex
[
i
])]);
offset
=
GET_BE_WORD
(
lookup
->
Lookup
[
GET_BE_WORD
(
feature
->
LookupListIndex
[
i
])]);
look
=
(
GSUB_LookupTable
*
)((
LPBYTE
)
lookup
+
offset
);
look
=
(
const
GSUB_LookupTable
*
)((
const
BYTE
*
)
lookup
+
offset
);
TRACE
(
"type %i, flag %x, subtables %i
\n
"
,
GET_BE_WORD
(
look
->
LookupType
),
GET_BE_WORD
(
look
->
LookupFlag
),
GET_BE_WORD
(
look
->
SubTableCount
));
TRACE
(
"type %i, flag %x, subtables %i
\n
"
,
GET_BE_WORD
(
look
->
LookupType
),
GET_BE_WORD
(
look
->
LookupFlag
),
GET_BE_WORD
(
look
->
SubTableCount
));
if
(
GET_BE_WORD
(
look
->
LookupType
)
!=
1
)
if
(
GET_BE_WORD
(
look
->
LookupType
)
!=
1
)
FIXME
(
"We only handle SubType 1
\n
"
);
FIXME
(
"We only handle SubType 1
\n
"
);
...
@@ -4364,12 +4364,12 @@ static FT_UInt GSUB_apply_feature(const GSUB_Header * header, const GSUB_Feature
...
@@ -4364,12 +4364,12 @@ static FT_UInt GSUB_apply_feature(const GSUB_Header * header, const GSUB_Feature
{
{
const
GSUB_SingleSubstFormat1
*
ssf1
;
const
GSUB_SingleSubstFormat1
*
ssf1
;
offset
=
GET_BE_WORD
(
look
->
SubTable
[
j
]);
offset
=
GET_BE_WORD
(
look
->
SubTable
[
j
]);
ssf1
=
(
GSUB_SingleSubstFormat1
*
)((
LPBYTE
)
look
+
offset
);
ssf1
=
(
const
GSUB_SingleSubstFormat1
*
)((
const
BYTE
*
)
look
+
offset
);
if
(
GET_BE_WORD
(
ssf1
->
SubstFormat
)
==
1
)
if
(
GET_BE_WORD
(
ssf1
->
SubstFormat
)
==
1
)
{
{
int
offset
=
GET_BE_WORD
(
ssf1
->
Coverage
);
int
offset
=
GET_BE_WORD
(
ssf1
->
Coverage
);
TRACE
(
" subtype 1, delta %i
\n
"
,
GET_BE_WORD
(
ssf1
->
DeltaGlyphID
));
TRACE
(
" subtype 1, delta %i
\n
"
,
GET_BE_WORD
(
ssf1
->
DeltaGlyphID
));
if
(
GSUB_is_glyph_covered
((
LPBYTE
)
ssf1
+
offset
,
glyph
)
!=
-
1
)
if
(
GSUB_is_glyph_covered
((
const
BYTE
*
)
ssf1
+
offset
,
glyph
)
!=
-
1
)
{
{
TRACE
(
" Glyph 0x%x ->"
,
glyph
);
TRACE
(
" Glyph 0x%x ->"
,
glyph
);
glyph
+=
GET_BE_WORD
(
ssf1
->
DeltaGlyphID
);
glyph
+=
GET_BE_WORD
(
ssf1
->
DeltaGlyphID
);
...
@@ -4382,10 +4382,10 @@ static FT_UInt GSUB_apply_feature(const GSUB_Header * header, const GSUB_Feature
...
@@ -4382,10 +4382,10 @@ static FT_UInt GSUB_apply_feature(const GSUB_Header * header, const GSUB_Feature
INT
index
;
INT
index
;
INT
offset
;
INT
offset
;
ssf2
=
(
GSUB_SingleSubstFormat2
*
)
ssf1
;
ssf2
=
(
const
GSUB_SingleSubstFormat2
*
)
ssf1
;
offset
=
GET_BE_WORD
(
ssf1
->
Coverage
);
offset
=
GET_BE_WORD
(
ssf1
->
Coverage
);
TRACE
(
" subtype 2, glyph count %i
\n
"
,
GET_BE_WORD
(
ssf2
->
GlyphCount
));
TRACE
(
" subtype 2, glyph count %i
\n
"
,
GET_BE_WORD
(
ssf2
->
GlyphCount
));
index
=
GSUB_is_glyph_covered
((
LPBYTE
)
ssf2
+
offset
,
glyph
);
index
=
GSUB_is_glyph_covered
((
const
BYTE
*
)
ssf2
+
offset
,
glyph
);
TRACE
(
" Coverage index %i
\n
"
,
index
);
TRACE
(
" Coverage index %i
\n
"
,
index
);
if
(
index
!=
-
1
)
if
(
index
!=
-
1
)
{
{
...
...
dlls/gdi32/region.c
View file @
8fd8d9e9
...
@@ -1031,12 +1031,12 @@ HRGN WINAPI ExtCreateRegion( const XFORM* lpXform, DWORD dwCount, const RGNDATA*
...
@@ -1031,12 +1031,12 @@ HRGN WINAPI ExtCreateRegion( const XFORM* lpXform, DWORD dwCount, const RGNDATA*
if
(
lpXform
)
if
(
lpXform
)
{
{
RECT
*
pCurRect
,
*
pEndRect
;
const
RECT
*
pCurRect
,
*
pEndRect
;
hrgn
=
CreateRectRgn
(
0
,
0
,
0
,
0
);
hrgn
=
CreateRectRgn
(
0
,
0
,
0
,
0
);
pEndRect
=
(
RECT
*
)
rgndata
->
Buffer
+
rgndata
->
rdh
.
nCount
;
pEndRect
=
(
const
RECT
*
)
rgndata
->
Buffer
+
rgndata
->
rdh
.
nCount
;
for
(
pCurRect
=
(
RECT
*
)
rgndata
->
Buffer
;
pCurRect
<
pEndRect
;
pCurRect
++
)
for
(
pCurRect
=
(
const
RECT
*
)
rgndata
->
Buffer
;
pCurRect
<
pEndRect
;
pCurRect
++
)
{
{
static
const
INT
count
=
4
;
static
const
INT
count
=
4
;
HRGN
poly_hrgn
;
HRGN
poly_hrgn
;
...
@@ -1063,10 +1063,10 @@ HRGN WINAPI ExtCreateRegion( const XFORM* lpXform, DWORD dwCount, const RGNDATA*
...
@@ -1063,10 +1063,10 @@ HRGN WINAPI ExtCreateRegion( const XFORM* lpXform, DWORD dwCount, const RGNDATA*
if
(
init_region
(
&
obj
->
rgn
,
rgndata
->
rdh
.
nCount
))
if
(
init_region
(
&
obj
->
rgn
,
rgndata
->
rdh
.
nCount
))
{
{
RECT
*
pCurRect
,
*
pEndRect
;
const
RECT
*
pCurRect
,
*
pEndRect
;
pEndRect
=
(
RECT
*
)
rgndata
->
Buffer
+
rgndata
->
rdh
.
nCount
;
pEndRect
=
(
const
RECT
*
)
rgndata
->
Buffer
+
rgndata
->
rdh
.
nCount
;
for
(
pCurRect
=
(
RECT
*
)
rgndata
->
Buffer
;
pCurRect
<
pEndRect
;
pCurRect
++
)
for
(
pCurRect
=
(
const
RECT
*
)
rgndata
->
Buffer
;
pCurRect
<
pEndRect
;
pCurRect
++
)
{
{
if
(
pCurRect
->
left
<
pCurRect
->
right
&&
pCurRect
->
top
<
pCurRect
->
bottom
)
if
(
pCurRect
->
left
<
pCurRect
->
right
&&
pCurRect
->
top
<
pCurRect
->
bottom
)
{
{
...
...
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