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
c14ff4be
Commit
c14ff4be
authored
Jun 18, 2013
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Jun 18, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32: Fix broken logic for retrieving default font properties.
parent
924fad9d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
5 deletions
+3
-5
tab.c
dlls/comctl32/tab.c
+3
-5
No files found.
dlls/comctl32/tab.c
View file @
c14ff4be
...
...
@@ -1899,7 +1899,7 @@ TAB_DrawItemInterior(const TAB_INFO *infoPtr, HDC hdc, INT iItem, RECT *drawRect
if
(
infoPtr
->
dwStyle
&
TCS_VERTICAL
)
/* if we are vertical rotate the text and each character */
{
LOGFONTW
logfont
;
HFONT
hFont
=
0
;
HFONT
hFont
;
INT
nEscapement
=
900
;
INT
nOrientation
=
900
;
...
...
@@ -1911,10 +1911,8 @@ TAB_DrawItemInterior(const TAB_INFO *infoPtr, HDC hdc, INT iItem, RECT *drawRect
/* to get a font with the escapement and orientation we are looking for, we need to */
/* call CreateFontIndirect, which requires us to set the values of the logfont we pass in */
if
(
!
GetObjectW
((
infoPtr
->
hFont
)
?
infoPtr
->
hFont
:
GetStockObject
(
DEFAULT_GUI_FONT
),
sizeof
(
LOGFONTW
),
&
logfont
))
GetStockObject
(
DEFAULT_GUI_FONT
);
if
(
!
GetObjectW
(
infoPtr
->
hFont
,
sizeof
(
logfont
),
&
logfont
))
GetObjectW
(
GetStockObject
(
DEFAULT_GUI_FONT
),
sizeof
(
logfont
),
&
logfont
);
logfont
.
lfEscapement
=
nEscapement
;
logfont
.
lfOrientation
=
nOrientation
;
...
...
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