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
676eb230
Commit
676eb230
authored
Oct 02, 2001
by
Andriy Palamarchuk
Committed by
Alexandre Julliard
Oct 02, 2001
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added SYSMETRICS_Set.
Implemented SPI_SETSHOWSOUNDS action.
parent
2718c895
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
23 additions
and
2 deletions
+23
-2
sysmetrics.h
include/sysmetrics.h
+1
-0
sysmetrics.c
windows/sysmetrics.c
+18
-1
sysparams.c
windows/sysparams.c
+4
-1
No files found.
include/sysmetrics.h
View file @
676eb230
...
...
@@ -8,6 +8,7 @@
#define __WINE_SYSMETRICS_H
extern
void
SYSMETRICS_Init
(
void
);
/* sysmetrics.c */
extern
INT
SYSMETRICS_Set
(
INT
index
,
INT
value
);
/* sysmetrics.c */
extern
void
SYSCOLOR_Init
(
void
);
/* syscolor.c */
/* Wine extensions */
...
...
windows/sysmetrics.c
View file @
676eb230
...
...
@@ -260,6 +260,23 @@ void SYSMETRICS_Init(void)
/***********************************************************************
* SYSMETRICS_Set
*
* Sets system metrics.
*/
INT
SYSMETRICS_Set
(
INT
index
,
INT
value
)
{
if
((
index
<
0
)
||
(
index
>
SM_WINE_CMETRICS
))
return
0
;
else
{
INT
prev
=
sysMetrics
[
index
];
sysMetrics
[
index
]
=
value
;
return
prev
;
}
}
/***********************************************************************
* GetSystemMetrics (USER.179)
*/
INT16
WINAPI
GetSystemMetrics16
(
INT16
index
)
...
...
@@ -274,5 +291,5 @@ INT16 WINAPI GetSystemMetrics16( INT16 index )
INT
WINAPI
GetSystemMetrics
(
INT
index
)
{
if
((
index
<
0
)
||
(
index
>
SM_WINE_CMETRICS
))
return
0
;
else
return
sysMetrics
[
index
];
return
sysMetrics
[
index
];
}
windows/sysparams.c
View file @
676eb230
...
...
@@ -20,6 +20,7 @@
#include "keyboard.h"
#include "user.h"
#include "debugtools.h"
#include "sysmetrics.h"
DEFAULT_DEBUG_CHANNEL
(
system
);
...
...
@@ -406,7 +407,9 @@ BOOL WINAPI SystemParametersInfoA( UINT uiAction, UINT uiParam,
case
SPI_GETSHOWSOUNDS
:
/* 56 */
*
(
INT
*
)
pvParam
=
GetSystemMetrics
(
SM_SHOWSOUNDS
);
break
;
WINE_SPI_FIXME
(
SPI_SETSHOWSOUNDS
);
/* 57 */
case
SPI_SETSHOWSOUNDS
:
/* 57 */
SYSMETRICS_Set
(
SM_SHOWSOUNDS
,
uiParam
);
break
;
WINE_SPI_FIXME
(
SPI_GETSTICKYKEYS
);
/* 58 */
WINE_SPI_FIXME
(
SPI_SETSTICKYKEYS
);
/* 59 */
WINE_SPI_FIXME
(
SPI_GETACCESSTIMEOUT
);
/* 60 */
...
...
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