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
97b92fe1
Commit
97b92fe1
authored
Feb 20, 2013
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Feb 20, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdiplus: Use an off-screen DC for font enumeration.
parent
61f82d6d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
font.c
dlls/gdiplus/font.c
+6
-6
No files found.
dlls/gdiplus/font.c
View file @
97b92fe1
...
...
@@ -979,12 +979,12 @@ GpStatus WINGDIPAPI GdipIsStyleAvailable(GDIPCONST GpFontFamily* family,
*
IsStyleAvailable
=
FALSE
;
hdc
=
Get
DC
(
0
);
hdc
=
CreateCompatible
DC
(
0
);
if
(
!
EnumFontFamiliesW
(
hdc
,
family
->
FamilyName
,
font_has_style_proc
,
(
LPARAM
)
style
))
*
IsStyleAvailable
=
TRUE
;
ReleaseDC
(
0
,
hdc
);
DeleteDC
(
hdc
);
return
Ok
;
}
...
...
@@ -1276,7 +1276,7 @@ GpStatus WINGDIPAPI GdipPrivateAddMemoryFont(GpFontCollection* fontCollection,
HDC
hdc
;
LOGFONTW
lfw
;
hdc
=
Get
DC
(
0
);
hdc
=
CreateCompatible
DC
(
0
);
lfw
.
lfCharSet
=
DEFAULT_CHARSET
;
lstrcpyW
(
lfw
.
lfFaceName
,
name
);
...
...
@@ -1288,7 +1288,7 @@ GpStatus WINGDIPAPI GdipPrivateAddMemoryFont(GpFontCollection* fontCollection,
return
OutOfMemory
;
}
ReleaseDC
(
0
,
hdc
);
DeleteDC
(
hdc
);
}
return
Ok
;
}
...
...
@@ -1403,7 +1403,7 @@ GpStatus WINGDIPAPI GdipNewInstalledFontCollection(
HDC
hdc
;
LOGFONTW
lfw
;
hdc
=
Get
DC
(
0
);
hdc
=
CreateCompatible
DC
(
0
);
lfw
.
lfCharSet
=
DEFAULT_CHARSET
;
lfw
.
lfFaceName
[
0
]
=
0
;
...
...
@@ -1416,7 +1416,7 @@ GpStatus WINGDIPAPI GdipNewInstalledFontCollection(
return
OutOfMemory
;
}
ReleaseDC
(
0
,
hdc
);
DeleteDC
(
hdc
);
}
*
fontCollection
=
&
installedFontCollection
;
...
...
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