From 8673eb73bb23902920d1f83ae9c55281705fe3dc Mon Sep 17 00:00:00 2001 From: Pierre Ossman Date: Fri, 6 Mar 2009 15:39:44 +0000 Subject: [PATCH] Use a 24-bit framebuffer by default. This is what's commonly used today and it's a format that's easier to handle efficiently in the encoders. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@3639 3789f03b-4d11-0410-bbf8-ca57d06f2519 --- unix/xserver/hw/vnc/Xvnc.man | 4 ++-- unix/xserver/hw/vnc/xvnc.cc | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/unix/xserver/hw/vnc/Xvnc.man b/unix/xserver/hw/vnc/Xvnc.man index da7cba83..a831ddda 100644 --- a/unix/xserver/hw/vnc/Xvnc.man +++ b/unix/xserver/hw/vnc/Xvnc.man @@ -36,8 +36,8 @@ Specify the size of the desktop to be created. Default is 1024x768. .TP .B \-depth \fIdepth\fP -Specify the pixel depth in bits of the desktop to be created. Default is 16, -other possible values are 8, 15, and 24 - anything else is likely to cause +Specify the pixel depth in bits of the desktop to be created. Default is 24, +other possible values are 8, 15, and 16 - anything else is likely to cause strange behaviour by applications. .TP diff --git a/unix/xserver/hw/vnc/xvnc.cc b/unix/xserver/hw/vnc/xvnc.cc index 64950672..9087ff08 100644 --- a/unix/xserver/hw/vnc/xvnc.cc +++ b/unix/xserver/hw/vnc/xvnc.cc @@ -98,7 +98,7 @@ extern int monitorResolution; #define VFB_DEFAULT_WIDTH 1024 #define VFB_DEFAULT_HEIGHT 768 -#define VFB_DEFAULT_DEPTH 16 +#define VFB_DEFAULT_DEPTH 24 #define VFB_DEFAULT_WHITEPIXEL 0xffff #define VFB_DEFAULT_BLACKPIXEL 0 #define VFB_DEFAULT_LINEBIAS 0 -- 2.39.5