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
3363d65f
Commit
3363d65f
authored
Sep 26, 2007
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdi32: Move the generic part of FontIsLinked() to font.c.
parent
543270df
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
11 deletions
+20
-11
font.c
dlls/gdi32/font.c
+16
-0
freetype.c
dlls/gdi32/freetype.c
+3
-11
gdi_private.h
dlls/gdi32/gdi_private.h
+1
-0
No files found.
dlls/gdi32/font.c
View file @
3363d65f
...
...
@@ -3422,3 +3422,19 @@ DWORD WINAPI GetFontUnicodeRanges(HDC hdc, LPGLYPHSET lpgs)
DC_ReleaseDCPtr
(
dc
);
return
ret
;
}
/*************************************************************
* FontIsLinked (GDI32.@)
*/
BOOL
WINAPI
FontIsLinked
(
HDC
hdc
)
{
DC
*
dc
=
DC_GetDCPtr
(
hdc
);
BOOL
ret
=
FALSE
;
if
(
!
dc
)
return
FALSE
;
if
(
dc
->
gdiFont
)
ret
=
WineEngFontIsLinked
(
dc
->
gdiFont
);
DC_ReleaseDCPtr
(
dc
);
TRACE
(
"returning %d
\n
"
,
ret
);
return
ret
;
}
dlls/gdi32/freetype.c
View file @
3363d65f
...
...
@@ -4651,17 +4651,9 @@ DWORD WineEngGetFontUnicodeRanges(GdiFont *font, LPGLYPHSET glyphset)
/*************************************************************
* FontIsLinked
*/
BOOL
W
INAPI
FontIsLinked
(
HDC
hdc
)
BOOL
W
ineEngFontIsLinked
(
GdiFont
*
font
)
{
DC
*
dc
=
DC_GetDCPtr
(
hdc
);
BOOL
ret
=
FALSE
;
if
(
!
dc
)
return
FALSE
;
if
(
dc
->
gdiFont
&&
!
list_empty
(
&
dc
->
gdiFont
->
child_fonts
))
ret
=
TRUE
;
DC_ReleaseDCPtr
(
dc
);
TRACE
(
"returning %d
\n
"
,
ret
);
return
ret
;
return
!
list_empty
(
&
font
->
child_fonts
);
}
static
BOOL
is_hinting_enabled
(
void
)
...
...
@@ -5074,7 +5066,7 @@ DWORD WineEngGetFontUnicodeRanges(GdiFont *font, LPGLYPHSET glyphset)
return
0
;
}
BOOL
W
INAPI
FontIsLinked
(
HDC
hdc
)
BOOL
W
ineEngFontIsLinked
(
GdiFont
*
font
)
{
return
FALSE
;
}
...
...
dlls/gdi32/gdi_private.h
View file @
3363d65f
...
...
@@ -444,6 +444,7 @@ extern BOOL WineEngGetTextExtentExPoint(GdiFont*, LPCWSTR, INT, INT, LPINT, LPIN
extern
BOOL
WineEngGetTextExtentPointI
(
GdiFont
*
,
const
WORD
*
,
INT
,
LPSIZE
);
extern
INT
WineEngGetTextFace
(
GdiFont
*
,
INT
,
LPWSTR
);
extern
BOOL
WineEngGetTextMetrics
(
GdiFont
*
,
LPTEXTMETRICW
);
extern
BOOL
WineEngFontIsLinked
(
GdiFont
*
);
extern
BOOL
WineEngInit
(
void
);
extern
BOOL
WineEngRemoveFontResourceEx
(
LPCWSTR
,
DWORD
,
PVOID
);
...
...
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