[PATCH 3/5] win32u: Remove the gamma value calibration code.
Byeongsik Jeon
bsjeon at hanmail.net
Wed Apr 20 11:40:05 CDT 2022
Signed-off-by: Byeongsik Jeon <bsjeon at hanmail.net>
---
This problem is caused by FreeType hinting engine. It's unnecessary code.
dlls/win32u/font.c | 7 +------
1 file changed, 1 insertion(+), 6 deletions(-)
diff --git a/dlls/win32u/font.c b/dlls/win32u/font.c
index c7d2059da02..12260881a1d 100644
--- a/dlls/win32u/font.c
+++ b/dlls/win32u/font.c
@@ -4312,7 +4312,7 @@ static UINT init_font_options(void)
char value_buffer[FIELD_OFFSET(KEY_VALUE_PARTIAL_INFORMATION, Data[20 * sizeof(WCHAR)])];
KEY_VALUE_PARTIAL_INFORMATION *info = (void *)value_buffer;
HKEY key;
- DWORD i, val, gamma = 1400;
+ DWORD i, val, gamma = 1000;
UINT dpi = 0;
if (query_reg_ascii_value( wine_fonts_key, "AntialiasFakeBoldOrItalic",
@@ -4352,11 +4352,6 @@ static UINT init_font_options(void)
NtClose( key );
}
- /* Calibrating the difference between the registry value and the Wine gamma value.
- This looks roughly similar to Windows Native with the same registry value.
- MS GDI seems to be rasterizing the outline at a different rate than FreeType. */
- gamma = 1000 * gamma / 1400;
-
for (i = 0; i < 256; i++)
{
font_gamma_ramp.encode[i] = pow( i / 255., 1000. / gamma ) * 255. + .5;
--
2.36.0
More information about the wine-devel
mailing list