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
cc086f09
Commit
cc086f09
authored
Jun 17, 2013
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Jun 17, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32: Use default GUI font as a fallback instead of a (non-existent) Arial.
parent
5b2d5157
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
14 deletions
+3
-14
tab.c
dlls/comctl32/tab.c
+3
-14
No files found.
dlls/comctl32/tab.c
View file @
cc086f09
...
...
@@ -1898,7 +1898,6 @@ TAB_DrawItemInterior(const TAB_INFO *infoPtr, HDC hdc, INT iItem, RECT *drawRect
/* Draw the text */
if
(
infoPtr
->
dwStyle
&
TCS_VERTICAL
)
/* if we are vertical rotate the text and each character */
{
static
const
WCHAR
ArialW
[]
=
{
'A'
,
'r'
,
'i'
,
'a'
,
'l'
,
0
};
LOGFONTW
logfont
;
HFONT
hFont
=
0
;
INT
nEscapement
=
900
;
...
...
@@ -1911,21 +1910,11 @@ 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
A
, 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
)
?
infoPtr
->
hFont
:
GetStockObject
(
SYSTEM
_FONT
),
infoPtr
->
hFont
:
GetStockObject
(
DEFAULT_GUI
_FONT
),
sizeof
(
LOGFONTW
),
&
logfont
))
{
INT
iPointSize
=
9
;
lstrcpyW
(
logfont
.
lfFaceName
,
ArialW
);
logfont
.
lfHeight
=
-
MulDiv
(
iPointSize
,
GetDeviceCaps
(
hdc
,
LOGPIXELSY
),
72
);
logfont
.
lfWeight
=
FW_NORMAL
;
logfont
.
lfItalic
=
0
;
logfont
.
lfUnderline
=
0
;
logfont
.
lfStrikeOut
=
0
;
}
GetStockObject
(
DEFAULT_GUI_FONT
);
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