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
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
...
@@ -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 */
if
(
infoPtr
->
dwStyle
&
TCS_VERTICAL
)
/* if we are vertical rotate the text and each character */
{
{
LOGFONTW
logfont
;
LOGFONTW
logfont
;
HFONT
hFont
=
0
;
HFONT
hFont
;
INT
nEscapement
=
900
;
INT
nEscapement
=
900
;
INT
nOrientation
=
900
;
INT
nOrientation
=
900
;
...
@@ -1911,10 +1911,8 @@ TAB_DrawItemInterior(const TAB_INFO *infoPtr, HDC hdc, INT iItem, RECT *drawRect
...
@@ -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 */
/* 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 */
/* call CreateFontIndirect, which requires us to set the values of the logfont we pass in */
if
(
!
GetObjectW
((
infoPtr
->
hFont
)
?
if
(
!
GetObjectW
(
infoPtr
->
hFont
,
sizeof
(
logfont
),
&
logfont
))
infoPtr
->
hFont
:
GetStockObject
(
DEFAULT_GUI_FONT
),
GetObjectW
(
GetStockObject
(
DEFAULT_GUI_FONT
),
sizeof
(
logfont
),
&
logfont
);
sizeof
(
LOGFONTW
),
&
logfont
))
GetStockObject
(
DEFAULT_GUI_FONT
);
logfont
.
lfEscapement
=
nEscapement
;
logfont
.
lfEscapement
=
nEscapement
;
logfont
.
lfOrientation
=
nOrientation
;
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