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
543270df
Commit
543270df
authored
Sep 26, 2007
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdi32: Don't pass a DC handle to WineEngGetFontUnicodeRanges.
parent
1abc24d2
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
20 deletions
+18
-20
font.c
dlls/gdi32/font.c
+10
-1
freetype.c
dlls/gdi32/freetype.c
+7
-18
gdi_private.h
dlls/gdi32/gdi_private.h
+1
-1
No files found.
dlls/gdi32/font.c
View file @
543270df
...
...
@@ -3411,5 +3411,14 @@ BOOL WINAPI GetCharWidthI(HDC hdc, UINT first, UINT count, LPWORD glyphs, LPINT
*/
DWORD
WINAPI
GetFontUnicodeRanges
(
HDC
hdc
,
LPGLYPHSET
lpgs
)
{
return
WineEngGetFontUnicodeRanges
(
hdc
,
lpgs
);
DWORD
ret
=
0
;
DC
*
dc
=
DC_GetDCPtr
(
hdc
);
TRACE
(
"(%p, %p)
\n
"
,
hdc
,
lpgs
);
if
(
!
dc
)
return
0
;
if
(
dc
->
gdiFont
)
ret
=
WineEngGetFontUnicodeRanges
(
dc
->
gdiFont
,
lpgs
);
DC_ReleaseDCPtr
(
dc
);
return
ret
;
}
dlls/gdi32/freetype.c
View file @
543270df
...
...
@@ -4634,28 +4634,17 @@ static DWORD get_font_unicode_ranges(FT_Face face, GLYPHSET *gs)
return
num_ranges
;
}
DWORD
WineEngGetFontUnicodeRanges
(
HDC
hdc
,
LPGLYPHSET
glyphset
)
DWORD
WineEngGetFontUnicodeRanges
(
GdiFont
*
font
,
LPGLYPHSET
glyphset
)
{
DWORD
size
=
0
;
DC
*
dc
=
DC_GetDCPtr
(
hdc
);
TRACE
(
"(%p, %p)
\n
"
,
hdc
,
glyphset
);
DWORD
num_ranges
=
get_font_unicode_ranges
(
font
->
ft_face
,
glyphset
);
if
(
!
dc
)
return
0
;
if
(
dc
->
gdiFont
)
size
=
sizeof
(
GLYPHSET
)
+
sizeof
(
WCRANGE
)
*
(
num_ranges
-
1
);
if
(
glyphset
)
{
DWORD
num_ranges
=
get_font_unicode_ranges
(
dc
->
gdiFont
->
ft_face
,
glyphset
);
size
=
sizeof
(
GLYPHSET
)
+
sizeof
(
WCRANGE
)
*
(
num_ranges
-
1
);
if
(
glyphset
)
{
glyphset
->
cbThis
=
size
;
glyphset
->
cRanges
=
num_ranges
;
}
glyphset
->
cbThis
=
size
;
glyphset
->
cRanges
=
num_ranges
;
}
DC_ReleaseDCPtr
(
dc
);
return
size
;
}
...
...
@@ -5079,7 +5068,7 @@ BOOL WineEngGetLinkedHFont(DC *dc, WCHAR c, HFONT *new_hfont, UINT *glyph)
return
FALSE
;
}
DWORD
WineEngGetFontUnicodeRanges
(
HDC
hdc
,
LPGLYPHSET
glyphset
)
DWORD
WineEngGetFontUnicodeRanges
(
GdiFont
*
font
,
LPGLYPHSET
glyphset
)
{
FIXME
(
"(%p, %p): stub
\n
"
,
hdc
,
glyphset
);
return
0
;
...
...
dlls/gdi32/gdi_private.h
View file @
543270df
...
...
@@ -430,7 +430,7 @@ extern BOOL WineEngGetCharABCWidthsI(GdiFont *font, UINT firstChar,
UINT
count
,
LPWORD
pgi
,
LPABC
buffer
);
extern
BOOL
WineEngGetCharWidth
(
GdiFont
*
,
UINT
,
UINT
,
LPINT
);
extern
DWORD
WineEngGetFontData
(
GdiFont
*
,
DWORD
,
DWORD
,
LPVOID
,
DWORD
);
extern
DWORD
WineEngGetFontUnicodeRanges
(
HDC
,
LPGLYPHSET
);
extern
DWORD
WineEngGetFontUnicodeRanges
(
GdiFont
*
,
LPGLYPHSET
);
extern
DWORD
WineEngGetGlyphIndices
(
GdiFont
*
font
,
LPCWSTR
lpstr
,
INT
count
,
LPWORD
pgi
,
DWORD
flags
);
extern
DWORD
WineEngGetGlyphOutline
(
GdiFont
*
,
UINT
glyph
,
UINT
format
,
...
...
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