[prev in list] [next in list] [prev in thread] [next in thread]
List: wine-patches
Subject: SetSystemMetrics
From: Andriy Palamarchuk <apa3a () yahoo ! com>
Date: 2001-09-24 19:21:21
[Download RAW message or body]
Files sysmetrics.c, sysmetrics.h:
Implementation of SetSystemMetrics function which sets data accessed by
GetSystemMetrics.
File sysparams.c:
Fixed source formatting, implemented SPI_SETSHOWSOUNDS action.
Complete list of files:
windows/sysparams.c
windows/sysmetrics.c
include/sysmetrics.h
Andriy Palamarchuk
["sysparams.c.diff" (text/plain)]
Index: sysparams.c
===================================================================
RCS file: /home/wine/wine/windows/sysparams.c,v
retrieving revision 1.21
diff -u -r1.21 sysparams.c
--- sysparams.c 2001/09/21 21:02:02 1.21
+++ sysparams.c 2001/09/24 17:42:48
@@ -20,6 +20,7 @@
#include "keyboard.h"
#include "user.h"
#include "debugtools.h"
+#include "sysmetrics.h"
DEFAULT_DEBUG_CHANNEL(system);
@@ -404,9 +405,11 @@
WINE_SPI_FIXME(SPI_GETMOUSEKEYS); /* 54 */
WINE_SPI_FIXME(SPI_SETMOUSEKEYS); /* 55 */
case SPI_GETSHOWSOUNDS: /* 56 */
- *(INT *)pvParam = GetSystemMetrics( SM_SHOWSOUNDS );
- break;
- WINE_SPI_FIXME(SPI_SETSHOWSOUNDS); /* 57 */
+ *(INT *)pvParam = GetSystemMetrics( SM_SHOWSOUNDS );
+ break;
+ case SPI_SETSHOWSOUNDS: /* 57 */
+ SetSystemMetrics(SM_SHOWSOUNDS, uiParam);
+ break;
WINE_SPI_FIXME(SPI_GETSTICKYKEYS); /* 58 */
WINE_SPI_FIXME(SPI_SETSTICKYKEYS); /* 59 */
WINE_SPI_FIXME(SPI_GETACCESSTIMEOUT); /* 60 */
["sysmetrics.h.diff" (text/plain)]
Index: sysmetrics.h
===================================================================
RCS file: /home/wine/wine/include/sysmetrics.h,v
retrieving revision 1.8
diff -u -r1.8 sysmetrics.h
--- sysmetrics.h 2000/07/31 23:32:49 1.8
+++ sysmetrics.h 2001/09/24 17:42:12
@@ -10,6 +10,8 @@
extern void SYSMETRICS_Init(void); /* sysmetrics.c */
extern void SYSCOLOR_Init(void); /* syscolor.c */
+extern INT SetSystemMetrics( INT index, INT value ); /* sysmetrics.c */
+
/* Wine extensions */
#define SM_WINE_BPP (SM_CMETRICS+1) /* screen bpp */
#define SM_WINE_CMETRICS SM_WINE_BPP
["sysmetrics.c.diff" (text/plain)]
Index: sysmetrics.c
===================================================================
RCS file: /home/wine/wine/windows/sysmetrics.c,v
retrieving revision 1.22
diff -u -r1.22 sysmetrics.c
--- sysmetrics.c 2001/07/11 20:18:11 1.22
+++ sysmetrics.c 2001/09/24 17:57:43
@@ -260,6 +260,23 @@
/***********************************************************************
+ * SetSystemMetrics
+ *
+ * Sets system metrics.
+ */
+INT SetSystemMetrics( INT index, INT value )
+{
+ if ((index < 0) || (index > SM_WINE_CMETRICS)) return 0;
+ else
+ {
+ INT prev = GetSystemMetrics(index);
+ sysMetrics[index] = value;
+ return prev;
+ }
+}
+
+
+/***********************************************************************
* GetSystemMetrics (USER.179)
*/
INT16 WINAPI GetSystemMetrics16( INT16 index )
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic