summaryrefslogtreecommitdiffstats
path: root/unix/xserver
diff options
context:
space:
mode:
authorPierre Ossman <ossman@cendio.se>2009-12-29 16:07:39 +0000
committerPierre Ossman <ossman@cendio.se>2009-12-29 16:07:39 +0000
commite859e542f89d6698d5e7c23392d3b54d96f668df (patch)
treefd7599d4b42a82ec77830635487d474703ddf6e4 /unix/xserver
parentf2180b2b6083d80919f33b58dc95cea6777795f7 (diff)
downloadtigervnc-e859e542f89d6698d5e7c23392d3b54d96f668df.tar.gz
tigervnc-e859e542f89d6698d5e7c23392d3b54d96f668df.zip
Change the default DPI to 96 as that is what most other systems use and we
want fonts to look the same in Xvnc. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@3935 3789f03b-4d11-0410-bbf8-ca57d06f2519
Diffstat (limited to 'unix/xserver')
-rw-r--r--unix/xserver/hw/vnc/xvnc.cc7
1 files changed, 5 insertions, 2 deletions
diff --git a/unix/xserver/hw/vnc/xvnc.cc b/unix/xserver/hw/vnc/xvnc.cc
index 36d1e6bd..1fe3473c 100644
--- a/unix/xserver/hw/vnc/xvnc.cc
+++ b/unix/xserver/hw/vnc/xvnc.cc
@@ -1096,11 +1096,14 @@ static Bool
vfbScreenInit(int index, ScreenPtr pScreen, int argc, char **argv)
{
vfbScreenInfoPtr pvfb = &vfbScreens[index];
- int dpi = 100;
+ int dpi;
int ret;
void *pbits;
- if (monitorResolution) dpi = monitorResolution;
+ /* 96 is the default used by most other systems */
+ dpi = 96;
+ if (monitorResolution)
+ dpi = monitorResolution;
pbits = vfbAllocateFramebufferMemory(&pvfb->fb);
if (!pbits) return FALSE;