Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
e352b29d
Commit
e352b29d
authored
Apr 11, 2017
by
Huw Davies
Committed by
Alexandre Julliard
Apr 11, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32/tests: Fix tests for minimium icon spacing when not in DPI scaling mode.
Signed-off-by:
Huw Davies
<
huw@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
bfcf92f1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
sysparams.c
dlls/user32/tests/sysparams.c
+4
-4
No files found.
dlls/user32/tests/sysparams.c
View file @
e352b29d
...
...
@@ -884,7 +884,7 @@ static void test_SPI_SETKEYBOARDSPEED( void ) /* 10 */
static
BOOL
dotest_spi_iconhorizontalspacing
(
INT
curr_val
)
{
BOOL
rc
;
INT
spacing
,
regval
;
INT
spacing
,
regval
,
min_val
=
MulDiv
(
32
,
dpi
,
USER_DEFAULT_SCREEN_DPI
)
;
ICONMETRICSA
im
;
rc
=
SystemParametersInfoA
(
SPI_ICONHORIZONTALSPACING
,
curr_val
,
0
,
...
...
@@ -892,7 +892,7 @@ static BOOL dotest_spi_iconhorizontalspacing( INT curr_val)
if
(
!
test_error_msg
(
rc
,
"SPI_ICONHORIZONTALSPACING"
))
return
FALSE
;
ok
(
rc
,
"SystemParametersInfoA: rc=%d err=%d
\n
"
,
rc
,
GetLastError
());
test_change_message
(
SPI_ICONHORIZONTALSPACING
,
0
);
if
(
curr_val
<
32
)
curr_val
=
32
;
curr_val
=
max
(
curr_val
,
min_val
)
;
/* The registry keys depend on the Windows version and the values too
* let's test (works on win95,ME,NT4,2k,XP)
*/
...
...
@@ -1053,7 +1053,7 @@ static void test_SPI_SETKEYBOARDDELAY( void ) /* 23 */
static
BOOL
dotest_spi_iconverticalspacing
(
INT
curr_val
)
{
BOOL
rc
;
INT
spacing
,
regval
;
INT
spacing
,
regval
,
min_val
=
MulDiv
(
32
,
dpi
,
USER_DEFAULT_SCREEN_DPI
)
;
ICONMETRICSA
im
;
rc
=
SystemParametersInfoA
(
SPI_ICONVERTICALSPACING
,
curr_val
,
0
,
...
...
@@ -1061,7 +1061,7 @@ static BOOL dotest_spi_iconverticalspacing( INT curr_val)
if
(
!
test_error_msg
(
rc
,
"SPI_ICONVERTICALSPACING"
))
return
FALSE
;
ok
(
rc
,
"SystemParametersInfoA: rc=%d err=%d
\n
"
,
rc
,
GetLastError
());
test_change_message
(
SPI_ICONVERTICALSPACING
,
0
);
if
(
curr_val
<
32
)
curr_val
=
32
;
curr_val
=
max
(
curr_val
,
min_val
)
;
/* The registry keys depend on the Windows version and the values too
* let's test (works on win95,ME,NT4,2k,XP)
*/
...
...
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