Commit 32e4ca0e authored by Alexandre Julliard's avatar Alexandre Julliard

Set SM_DBCSENABLED according to the current locale instead of

hardcoding it to 0 (found by Mike McCormack).
parent 38f932c8
......@@ -602,6 +602,7 @@ void SYSPARAMS_Init(void)
HKEY hkey; /* key to the window metrics area of the registry */
WCHAR buf[10];
INT border;
CPINFO cpinfo;
display_dc = CreateICW( DISPLAY, NULL, NULL, NULL );
assert( display_dc );
......@@ -681,7 +682,8 @@ void SYSPARAMS_Init(void)
SystemParametersInfoW( SPI_GETMENUDROPALIGNMENT, 0, &sysMetrics[SM_MENUDROPALIGNMENT], 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 */
sysMetrics[SM_CMOUSEBUTTONS] = 3;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment