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
766388c5
Commit
766388c5
authored
Aug 17, 2021
by
Zhiyi Zhang
Committed by
Alexandre Julliard
Aug 17, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wordpad: Use large icons for toolbar when DPI is greater than 120.
Signed-off-by:
Zhiyi Zhang
<
zzhang@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
f8ce819a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
wordpad.c
programs/wordpad/wordpad.c
+6
-2
No files found.
programs/wordpad/wordpad.c
View file @
766388c5
...
...
@@ -1881,7 +1881,7 @@ static LRESULT OnCreate( HWND hWnd )
HFONT
font
;
HDC
hdc
;
SIZE
name_sz
,
size_sz
;
int
height
;
int
height
,
dpi
;
static
const
WCHAR
wszRichEditDll
[]
=
{
'R'
,
'I'
,
'C'
,
'H'
,
'E'
,
'D'
,
'2'
,
'0'
,
'.'
,
'D'
,
'L'
,
'L'
,
'\0'
};
static
const
WCHAR
wszRichEditText
[]
=
{
'R'
,
'i'
,
'c'
,
'h'
,
'E'
,
'd'
,
'i'
,
't'
,
' '
,
't'
,
'e'
,
'x'
,
't'
,
'\0'
};
static
const
WCHAR
font_text
[]
=
{
'T'
,
'i'
,
'm'
,
'e'
,
's'
,
' '
,
'N'
,
'e'
,
'w'
,
' '
,
'R'
,
'o'
,
'm'
,
'a'
,
'n'
,
0
};
/* a long font name */
...
...
@@ -1905,8 +1905,12 @@ static LRESULT OnCreate( HWND hWnd )
NULL
,
0
,
24
,
24
,
16
,
16
,
sizeof
(
TBBUTTON
));
hdc
=
GetDC
(
hWnd
);
dpi
=
GetDeviceCaps
(
hdc
,
LOGPIXELSY
);
ReleaseDC
(
hWnd
,
hdc
);
ab
.
hInst
=
HINST_COMMCTRL
;
ab
.
nID
=
IDB_STD_SMALL_COLOR
;
ab
.
nID
=
dpi
>=
120
?
IDB_STD_LARGE_COLOR
:
IDB_STD_SMALL_COLOR
;
nStdBitmaps
=
SendMessageW
(
hToolBarWnd
,
TB_ADDBITMAP
,
0
,
(
LPARAM
)
&
ab
);
AddButton
(
hToolBarWnd
,
nStdBitmaps
+
STD_FILENEW
,
ID_FILE_NEW
);
...
...
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