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
5fdcacad
Commit
5fdcacad
authored
May 26, 2016
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32: Make spacing consistent between DrawCaptionTemp and NC_DrawCaption.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
b4bccfee
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
10 deletions
+9
-10
nonclient.c
dlls/user32/nonclient.c
+9
-10
No files found.
dlls/user32/nonclient.c
View file @
5fdcacad
...
...
@@ -312,12 +312,13 @@ BOOL WINAPI DrawCaptionTempW (HWND hwnd, HDC hdc, const RECT *rect, HFONT hFont,
if
(
!
hIcon
)
hIcon
=
NC_IconForWindow
(
hwnd
);
DrawIconEx
(
hdc
,
pt
.
x
,
pt
.
y
,
hIcon
,
GetSystemMetrics
(
SM_CXSMICON
),
GetSystemMetrics
(
SM_CYSMICON
),
0
,
0
,
DI_NORMAL
);
rc
.
left
+=
(
rc
.
bottom
-
rc
.
top
);
rc
.
left
=
pt
.
x
+
GetSystemMetrics
(
SM_CXSMICON
);
}
/* drawing text */
if
(
uFlags
&
DC_TEXT
)
{
HFONT
hOldFont
;
WCHAR
text
[
128
];
if
(
uFlags
&
DC_INBUTTON
)
SetTextColor
(
hdc
,
GetSysColor
(
COLOR_BTNTEXT
));
...
...
@@ -340,16 +341,14 @@ BOOL WINAPI DrawCaptionTempW (HWND hwnd, HDC hdc, const RECT *rect, HFONT hFont,
hOldFont
=
SelectObject
(
hdc
,
hNewFont
);
}
if
(
str
)
DrawTextW
(
hdc
,
str
,
-
1
,
&
rc
,
DT_SINGLELINE
|
DT_VCENTER
|
DT_NOPREFIX
|
DT_LEFT
);
else
{
WCHAR
szText
[
128
];
INT
nLen
;
nLen
=
GetWindowTextW
(
hwnd
,
szText
,
128
);
DrawTextW
(
hdc
,
szText
,
nLen
,
&
rc
,
DT_SINGLELINE
|
DT_VCENTER
|
DT_NOPREFIX
|
DT_LEFT
);
if
(
!
str
)
{
if
(
!
GetWindowTextW
(
hwnd
,
text
,
sizeof
(
text
)
/
sizeof
(
WCHAR
)
))
text
[
0
]
=
0
;
str
=
text
;
}
rc
.
left
+=
2
;
DrawTextW
(
hdc
,
str
,
-
1
,
&
rc
,
((
uFlags
&
0x4000
)
?
DT_CENTER
:
DT_LEFT
)
|
DT_SINGLELINE
|
DT_VCENTER
|
DT_NOPREFIX
|
DT_END_ELLIPSIS
);
if
(
hFont
)
SelectObject
(
hdc
,
hOldFont
);
...
...
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