]> source.dussan.org Git - tigervnc.git/commitdiff
Change the default DPI to 96 as that is what most other systems use and we
authorPierre Ossman <ossman@cendio.se>
Tue, 29 Dec 2009 16:07:39 +0000 (16:07 +0000)
committerPierre Ossman <ossman@cendio.se>
Tue, 29 Dec 2009 16:07:39 +0000 (16:07 +0000)
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

unix/xserver/hw/vnc/xvnc.cc

index 36d1e6bd56cb0180863b36cad200d49c3c477134..1fe3473cf97934bcaa894e92501a2cc7d93fa09b 100644 (file)
@@ -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;