Commit 86c41dc4 authored by Alexandre Julliard's avatar Alexandre Julliard

gdi32: Take into account the FontSmoothing key for anti-aliasing.

parent ff8647ea
......@@ -295,22 +295,17 @@ static UINT get_subpixel_orientation( HKEY key )
static UINT get_default_smoothing( HKEY key )
{
static const WCHAR smoothing[] = {'F','o','n','t','S','m','o','o','t','h','i','n','g',0};
static const WCHAR smoothing_type[] = {'F','o','n','t','S','m','o','o','t','h','i','n','g','T','y','p','e',0};
DWORD type;
/* FIXME: Ignoring FontSmoothing for now since this is
set to off by default in wine.inf */
DWORD enabled, type;
if (get_key_value( key, smoothing_type, &type )) return 0;
if (get_key_value( key, smoothing, &enabled )) return 0;
if (!enabled) return GGO_BITMAP;
switch (type)
{
case 1: /* FE_FONTSMOOTHINGSTANDARD */
return GGO_GRAY4_BITMAP;
case 2: /* FE_FONTSMOOTHINGCLEARTYPE */
if (!get_key_value( key, smoothing_type, &type ) && type == 2 /* FE_FONTSMOOTHINGCLEARTYPE */)
return get_subpixel_orientation( key );
}
return 0;
return GGO_GRAY4_BITMAP;
}
......
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