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
dcd9376a
Commit
dcd9376a
authored
Apr 18, 2019
by
Zebediah Figura
Committed by
Alexandre Julliard
Apr 19, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wordpad: Use GetSysColorBrush().
Signed-off-by:
Zebediah Figura
<
z.figura12@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
8d251a1d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
3 deletions
+1
-3
print.c
programs/wordpad/print.c
+1
-3
No files found.
programs/wordpad/print.c
View file @
dcd9376a
...
...
@@ -376,10 +376,9 @@ static void paint_ruler(HWND hWnd, LONG EditLeftmost, BOOL NewMetrics)
HDC
hdcPrint
=
make_dc
();
RECT
printRect
=
get_print_rect
(
hdcPrint
);
RECT
drawRect
;
HBRUSH
hBrush
=
CreateSolidBrush
(
GetSysColor
(
COLOR_MENU
));
GetClientRect
(
hWnd
,
&
drawRect
);
FillRect
(
hdc
,
&
drawRect
,
hBrush
);
FillRect
(
hdc
,
&
drawRect
,
GetSysColorBrush
(
COLOR_MENU
)
);
InflateRect
(
&
drawRect
,
0
,
-
3
);
drawRect
.
left
=
EditLeftmost
;
...
...
@@ -399,7 +398,6 @@ static void paint_ruler(HWND hWnd, LONG EditLeftmost, BOOL NewMetrics)
add_ruler_units
(
hdc
,
&
drawRect
,
NewMetrics
,
EditLeftmost
);
SelectObject
(
hdc
,
GetStockObject
(
BLACK_BRUSH
));
DeleteObject
(
hBrush
);
DeleteDC
(
hdcPrint
);
EndPaint
(
hWnd
,
&
ps
);
}
...
...
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