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
b31d7dbe
Commit
b31d7dbe
authored
Oct 02, 2008
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Oct 02, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdi32: Do not skip the font metrics update after the DC transform change.
parent
47ecb488
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
7 deletions
+4
-7
font.c
dlls/gdi32/font.c
+4
-7
No files found.
dlls/gdi32/font.c
View file @
b31d7dbe
...
...
@@ -484,14 +484,11 @@ static HGDIOBJ FONT_SelectObject( HGDIOBJ handle, HDC hdc )
return
0
;
}
if
(
dc
->
hFont
!=
handle
||
dc
->
gdiFont
==
NULL
)
if
(
GetDeviceCaps
(
dc
->
hSelf
,
TEXTCAPS
)
&
TC_VA_ABLE
)
{
if
(
GetDeviceCaps
(
dc
->
hSelf
,
TEXTCAPS
)
&
TC_VA_ABLE
)
{
FONTOBJ
*
font
=
GDI_GetObjPtr
(
handle
,
FONT_MAGIC
);
/* to grab the GDI lock (FIXME) */
dc
->
gdiFont
=
WineEngCreateFontInstance
(
dc
,
handle
);
if
(
font
)
GDI_ReleaseObj
(
handle
);
}
FONTOBJ
*
font
=
GDI_GetObjPtr
(
handle
,
FONT_MAGIC
);
/* to grab the GDI lock (FIXME) */
dc
->
gdiFont
=
WineEngCreateFontInstance
(
dc
,
handle
);
if
(
font
)
GDI_ReleaseObj
(
handle
);
}
if
(
dc
->
funcs
->
pSelectFont
)
ret
=
dc
->
funcs
->
pSelectFont
(
dc
->
physDev
,
handle
,
dc
->
gdiFont
);
...
...
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