Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
98beaff2
Commit
98beaff2
authored
Aug 08, 2005
by
Mike McCormack
Committed by
Alexandre Julliard
Aug 08, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Warning fixes for gcc 4.0.
parent
0596fe15
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
16 additions
and
15 deletions
+16
-15
driver.c
dlls/gdi/driver.c
+2
-2
font.c
dlls/gdi/font.c
+6
-6
freetype.c
dlls/gdi/freetype.c
+6
-5
metafile.c
dlls/gdi/tests/metafile.c
+2
-2
No files found.
dlls/gdi/driver.c
View file @
98beaff2
...
...
@@ -410,14 +410,14 @@ DEVMODEW * WINAPI GdiConvertToDevmodeW(const DEVMODEA *dmA)
dmW
=
HeapAlloc
(
GetProcessHeap
(),
0
,
dmW_size
+
dmA
->
dmDriverExtra
);
if
(
!
dmW
)
return
NULL
;
MultiByteToWideChar
(
CP_ACP
,
0
,
dmA
->
dmDeviceName
,
CCHDEVICENAME
,
MultiByteToWideChar
(
CP_ACP
,
0
,
(
const
char
*
)
dmA
->
dmDeviceName
,
CCHDEVICENAME
,
dmW
->
dmDeviceName
,
CCHDEVICENAME
);
/* copy slightly more, to avoid long computations */
memcpy
(
&
dmW
->
dmSpecVersion
,
&
dmA
->
dmSpecVersion
,
dmA
->
dmSize
-
CCHDEVICENAME
);
if
(
dmA
->
dmSize
>=
(
const
char
*
)
dmA
->
dmFormName
-
(
const
char
*
)
dmA
+
CCHFORMNAME
)
{
MultiByteToWideChar
(
CP_ACP
,
0
,
dmA
->
dmFormName
,
CCHFORMNAME
,
MultiByteToWideChar
(
CP_ACP
,
0
,
(
const
char
*
)
dmA
->
dmFormName
,
CCHFORMNAME
,
dmW
->
dmFormName
,
CCHFORMNAME
);
if
(
dmA
->
dmSize
>
(
const
char
*
)
&
dmA
->
dmLogPixels
-
(
const
char
*
)
dmA
)
memcpy
(
&
dmW
->
dmLogPixels
,
&
dmA
->
dmLogPixels
,
dmA
->
dmSize
-
((
const
char
*
)
&
dmA
->
dmLogPixels
-
(
const
char
*
)
dmA
));
...
...
dlls/gdi/font.c
View file @
98beaff2
...
...
@@ -229,13 +229,13 @@ static void FONT_EnumLogFontExWTo16( const ENUMLOGFONTEXW *fontW, LPENUMLOGFONTE
FONT_LogFontWTo16
(
(
LPLOGFONTW
)
fontW
,
(
LPLOGFONT16
)
font16
);
WideCharToMultiByte
(
CP_ACP
,
0
,
fontW
->
elfFullName
,
-
1
,
font16
->
elfFullName
,
LF_FULLFACESIZE
,
NULL
,
NULL
);
(
LPSTR
)
font16
->
elfFullName
,
LF_FULLFACESIZE
,
NULL
,
NULL
);
font16
->
elfFullName
[
LF_FULLFACESIZE
-
1
]
=
'\0'
;
WideCharToMultiByte
(
CP_ACP
,
0
,
fontW
->
elfStyle
,
-
1
,
font16
->
elfStyle
,
LF_FACESIZE
,
NULL
,
NULL
);
(
LPSTR
)
font16
->
elfStyle
,
LF_FACESIZE
,
NULL
,
NULL
);
font16
->
elfStyle
[
LF_FACESIZE
-
1
]
=
'\0'
;
WideCharToMultiByte
(
CP_ACP
,
0
,
fontW
->
elfScript
,
-
1
,
font16
->
elfScript
,
LF_FACESIZE
,
NULL
,
NULL
);
(
LPSTR
)
font16
->
elfScript
,
LF_FACESIZE
,
NULL
,
NULL
);
font16
->
elfScript
[
LF_FACESIZE
-
1
]
=
'\0'
;
}
...
...
@@ -244,13 +244,13 @@ static void FONT_EnumLogFontExWToA( const ENUMLOGFONTEXW *fontW, LPENUMLOGFONTEX
FONT_LogFontWToA
(
(
LPLOGFONTW
)
fontW
,
(
LPLOGFONTA
)
fontA
);
WideCharToMultiByte
(
CP_ACP
,
0
,
fontW
->
elfFullName
,
-
1
,
fontA
->
elfFullName
,
LF_FULLFACESIZE
,
NULL
,
NULL
);
(
LPSTR
)
fontA
->
elfFullName
,
LF_FULLFACESIZE
,
NULL
,
NULL
);
fontA
->
elfFullName
[
LF_FULLFACESIZE
-
1
]
=
'\0'
;
WideCharToMultiByte
(
CP_ACP
,
0
,
fontW
->
elfStyle
,
-
1
,
fontA
->
elfStyle
,
LF_FACESIZE
,
NULL
,
NULL
);
(
LPSTR
)
fontA
->
elfStyle
,
LF_FACESIZE
,
NULL
,
NULL
);
fontA
->
elfStyle
[
LF_FACESIZE
-
1
]
=
'\0'
;
WideCharToMultiByte
(
CP_ACP
,
0
,
fontW
->
elfScript
,
-
1
,
fontA
->
elfScript
,
LF_FACESIZE
,
NULL
,
NULL
);
(
LPSTR
)
fontA
->
elfScript
,
LF_FACESIZE
,
NULL
,
NULL
);
fontA
->
elfScript
[
LF_FACESIZE
-
1
]
=
'\0'
;
}
...
...
dlls/gdi/freetype.c
View file @
98beaff2
...
...
@@ -848,7 +848,7 @@ static void load_fontconfig_fonts(void)
FcFontSet
*
fontset
;
FcValue
v
;
int
i
,
len
;
const
char
*
ext
;
const
char
*
file
,
*
ext
;
fc_handle
=
wine_dlopen
(
SONAME_LIBFONTCONFIG
,
RTLD_NOW
,
NULL
,
0
);
if
(
!
fc_handle
)
{
...
...
@@ -881,16 +881,17 @@ LOAD_FUNCPTR(FcPatternGet);
if
(
pFcPatternGet
(
fontset
->
fonts
[
i
],
FC_FILE
,
0
,
&
v
)
!=
FcResultMatch
)
continue
;
if
(
v
.
type
!=
FcTypeString
)
continue
;
TRACE
(
"fontconfig: %s
\n
"
,
v
.
u
.
s
);
file
=
(
LPCSTR
)
v
.
u
.
s
;
TRACE
(
"fontconfig: %s
\n
"
,
file
);
/* We're just interested in OT/TT fonts for now, so this hack just
picks up the standard extensions to save time loading every other
font */
len
=
strlen
(
v
.
u
.
s
);
len
=
strlen
(
file
);
if
(
len
<
4
)
continue
;
ext
=
v
.
u
.
s
+
len
-
3
;
ext
=
&
file
[
len
-
3
]
;
if
(
!
strcasecmp
(
ext
,
"ttf"
)
||
!
strcasecmp
(
ext
,
"ttc"
)
||
!
strcasecmp
(
ext
,
"otf"
))
AddFontFileToList
(
v
.
u
.
s
,
NULL
,
ADDFONT_EXTERNAL_FONT
);
AddFontFileToList
(
file
,
NULL
,
ADDFONT_EXTERNAL_FONT
);
}
pFcFontSetDestroy
(
fontset
);
pFcObjectSetDestroy
(
os
);
...
...
dlls/gdi/tests/metafile.c
View file @
98beaff2
...
...
@@ -295,10 +295,10 @@ static void dump_mf_bits (const HMETAFILE mf, const char *desc)
* otherwise returns the number of non-matching bytes.
*/
static
int
compare_mf_bits
(
const
HMETAFILE
mf
,
const
char
*
bits
,
UINT
bsize
,
static
int
compare_mf_bits
(
const
HMETAFILE
mf
,
const
unsigned
char
*
bits
,
UINT
bsize
,
const
char
*
desc
)
{
char
buf
[
MF_BUFSIZE
];
unsigned
char
buf
[
MF_BUFSIZE
];
UINT
mfsize
,
i
;
int
diff
;
...
...
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