Update wine to 1.2.
[sugaredwine.git] / patches / 0027-default-to-150-dpi.patch
blob7fa20e2ad65f92d2a9d670418712a676e9d0ebad
1 From 28b3a86c9ee4eeeae30e7094de295161e78eea48 Mon Sep 17 00:00:00 2001
2 From: Vincent Povirk <vincent@codeweavers.com>
3 Date: Wed, 15 Oct 2008 16:51:17 -0500
4 Subject: [PATCH] default to 150 dpi
6 ---
7 dlls/winex11.drv/init.c | 2 +-
8 tools/wine.inf.in | 2 +-
9 2 files changed, 2 insertions(+), 2 deletions(-)
11 diff --git a/dlls/winex11.drv/init.c b/dlls/winex11.drv/init.c
12 index 1462b5e..6641126 100644
13 --- a/dlls/winex11.drv/init.c
14 +++ b/dlls/winex11.drv/init.c
15 @@ -59,7 +59,7 @@ static const WCHAR dpi_value_name[] = {'L','o','g','P','i','x','e','l','s','\0'}
17 static DWORD get_dpi( void )
19 - DWORD dpi = 96;
20 + DWORD dpi = 150;
21 HKEY hkey;
23 if (RegOpenKeyW(HKEY_CURRENT_CONFIG, dpi_key_name, &hkey) == ERROR_SUCCESS)
24 diff --git a/tools/wine.inf.in b/tools/wine.inf.in
25 index 92e1b19..50b7f08 100644
26 --- a/tools/wine.inf.in
27 +++ b/tools/wine.inf.in
28 @@ -591,7 +591,7 @@ HKLM,%FontSubStr%,"Times New Roman CE,238",,"Times New Roman,238"
29 HKLM,%FontSubStr%,"Times New Roman CYR,204",,"Times New Roman,204"
30 HKLM,%FontSubStr%,"Times New Roman Greek,161",,"Times New Roman,161"
31 HKLM,%FontSubStr%,"Times New Roman TUR,162",,"Times New Roman,162"
32 -HKLM,System\CurrentControlSet\Hardware Profiles\Current\Software\Fonts,"LogPixels",0x10003,0x00000060
33 +HKLM,System\CurrentControlSet\Hardware Profiles\Current\Software\Fonts,"LogPixels",0x10003,0x00000096
35 [MCI]
36 HKLM,%Mci32Str%,"AVIVideo",,"mciavi32.dll"
37 --
38 1.5.6.5