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
3d47809a
Commit
3d47809a
authored
May 02, 2017
by
Huw Davies
Committed by
Alexandre Julliard
May 02, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32: Fix icon spacing minimium values.
Signed-off-by:
Huw Davies
<
huw@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
fb118b22
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
2 deletions
+12
-2
sysparams.c
dlls/user32/sysparams.c
+12
-2
No files found.
dlls/user32/sysparams.c
View file @
3d47809a
...
...
@@ -1487,7 +1487,12 @@ BOOL WINAPI SystemParametersInfoW( UINT uiAction, UINT uiParam,
if
(
pvParam
!=
NULL
)
ret
=
get_entry
(
&
entry_ICONHORIZONTALSPACING
,
uiParam
,
pvParam
);
else
ret
=
set_entry
(
&
entry_ICONHORIZONTALSPACING
,
max
(
32
,
uiParam
),
pvParam
,
fWinIni
);
{
int
min_val
=
32
;
if
(
IsProcessDPIAware
())
min_val
=
MulDiv
(
min_val
,
get_display_dpi
(),
USER_DEFAULT_SCREEN_DPI
);
ret
=
set_entry
(
&
entry_ICONHORIZONTALSPACING
,
max
(
min_val
,
uiParam
),
pvParam
,
fWinIni
);
}
break
;
case
SPI_GETSCREENSAVETIMEOUT
:
ret
=
get_entry
(
&
entry_SCREENSAVETIMEOUT
,
uiParam
,
pvParam
);
...
...
@@ -1525,7 +1530,12 @@ BOOL WINAPI SystemParametersInfoW( UINT uiAction, UINT uiParam,
if
(
pvParam
!=
NULL
)
ret
=
get_entry
(
&
entry_ICONVERTICALSPACING
,
uiParam
,
pvParam
);
else
ret
=
set_entry
(
&
entry_ICONVERTICALSPACING
,
max
(
32
,
uiParam
),
pvParam
,
fWinIni
);
{
int
min_val
=
32
;
if
(
IsProcessDPIAware
())
min_val
=
MulDiv
(
min_val
,
get_display_dpi
(),
USER_DEFAULT_SCREEN_DPI
);
ret
=
set_entry
(
&
entry_ICONVERTICALSPACING
,
max
(
min_val
,
uiParam
),
pvParam
,
fWinIni
);
}
break
;
case
SPI_GETICONTITLEWRAP
:
ret
=
get_entry
(
&
entry_ICONTITLEWRAP
,
uiParam
,
pvParam
);
...
...
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