Set SM_DBCSENABLED according to the current locale instead of
hardcoding it to 0 (found by Mike McCormack).
This commit is contained in:
parent
38f932c823
commit
32e4ca0ec1
|
@ -602,6 +602,7 @@ void SYSPARAMS_Init(void)
|
||||||
HKEY hkey; /* key to the window metrics area of the registry */
|
HKEY hkey; /* key to the window metrics area of the registry */
|
||||||
WCHAR buf[10];
|
WCHAR buf[10];
|
||||||
INT border;
|
INT border;
|
||||||
|
CPINFO cpinfo;
|
||||||
|
|
||||||
display_dc = CreateICW( DISPLAY, NULL, NULL, NULL );
|
display_dc = CreateICW( DISPLAY, NULL, NULL, NULL );
|
||||||
assert( display_dc );
|
assert( display_dc );
|
||||||
|
@ -681,7 +682,8 @@ void SYSPARAMS_Init(void)
|
||||||
|
|
||||||
SystemParametersInfoW( SPI_GETMENUDROPALIGNMENT, 0, &sysMetrics[SM_MENUDROPALIGNMENT], 0 );
|
SystemParametersInfoW( SPI_GETMENUDROPALIGNMENT, 0, &sysMetrics[SM_MENUDROPALIGNMENT], 0 );
|
||||||
sysMetrics[SM_PENWINDOWS] = 0;
|
sysMetrics[SM_PENWINDOWS] = 0;
|
||||||
sysMetrics[SM_DBCSENABLED] = 0;
|
GetCPInfo( CP_ACP, &cpinfo );
|
||||||
|
sysMetrics[SM_DBCSENABLED] = (cpinfo.MaxCharSize > 1);
|
||||||
|
|
||||||
/* FIXME: Need to query X for the following */
|
/* FIXME: Need to query X for the following */
|
||||||
sysMetrics[SM_CMOUSEBUTTONS] = 3;
|
sysMetrics[SM_CMOUSEBUTTONS] = 3;
|
||||||
|
|
Loading…
Reference in New Issue