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
d9e25f9c
Commit
d9e25f9c
authored
Nov 08, 2004
by
William Poetra Yoga H
Committed by
Alexandre Julliard
Nov 08, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix the size and position of the system menu icon on the caption bar.
parent
a2d24c8a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
nonclient.c
windows/nonclient.c
+4
-4
No files found.
windows/nonclient.c
View file @
d9e25f9c
...
...
@@ -655,9 +655,9 @@ BOOL NC_DrawSysButton (HWND hwnd, HDC hdc, BOOL down)
{
RECT
rect
;
NC_GetInsideRect
(
hwnd
,
&
rect
);
DrawIconEx
(
hdc
,
rect
.
left
+
1
,
rect
.
top
+
1
,
hIcon
,
GetSystemMetrics
(
SM_CXS
IZE
)
-
1
,
GetSystemMetrics
(
SM_CYS
IZE
)
-
1
,
0
,
0
,
DI_NORMAL
);
DrawIconEx
(
hdc
,
rect
.
left
+
2
,
rect
.
top
+
1
,
hIcon
,
GetSystemMetrics
(
SM_CXS
MICON
)
,
GetSystemMetrics
(
SM_CYS
MICON
)
,
0
,
0
,
DI_NORMAL
);
}
return
(
hIcon
!=
0
);
}
...
...
@@ -871,7 +871,7 @@ static void NC_DrawCaption( HDC hdc, RECT *rect, HWND hwnd, DWORD style,
if
((
style
&
WS_SYSMENU
)
&&
!
(
exStyle
&
WS_EX_TOOLWINDOW
))
{
if
(
NC_DrawSysButton
(
hwnd
,
hdc
,
FALSE
))
r
.
left
+=
GetSystemMetrics
(
SM_C
YCAPTION
)
-
1
;
r
.
left
+=
GetSystemMetrics
(
SM_C
XSMICON
)
+
2
;
}
if
(
style
&
WS_SYSMENU
)
...
...
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