diff options
author | Adam Tkac <atkac@redhat.com> | 2010-08-27 09:03:04 +0000 |
---|---|---|
committer | Adam Tkac <atkac@redhat.com> | 2010-08-27 09:03:04 +0000 |
commit | 7b404a8263353c8480043b412b71794feb280ede (patch) | |
tree | 0b0200f9ba5c5b65ca2e28e068a449cbaef1c307 /unix/xserver | |
parent | fab093c637cb0d8837802869321cd0abed7f156c (diff) | |
download | tigervnc-7b404a8263353c8480043b412b71794feb280ede.tar.gz tigervnc-7b404a8263353c8480043b412b71794feb280ede.zip |
[Bugfix] Set pvfb->pixelFormatDefined only if format is defined.
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4126 3789f03b-4d11-0410-bbf8-ca57d06f2519
Diffstat (limited to 'unix/xserver')
-rw-r--r-- | unix/xserver/hw/vnc/xvnc.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/unix/xserver/hw/vnc/xvnc.cc b/unix/xserver/hw/vnc/xvnc.cc index d5bffbeb..5ce61630 100644 --- a/unix/xserver/hw/vnc/xvnc.cc +++ b/unix/xserver/hw/vnc/xvnc.cc @@ -1204,15 +1204,15 @@ vfbScreenInit(int index, ScreenPtr pScreen, int argc, char **argv) pScreen->whitePixel = pvfb->whitePixel; if (!pvfb->pixelFormatDefined) { - pvfb->pixelFormatDefined = TRUE; - switch (pvfb->fb.depth) { case 16: + pvfb->pixelFormatDefined = TRUE; pvfb->rgbNotBgr = TRUE; pvfb->blueBits = pvfb->redBits = 5; pvfb->greenBits = 6; break; case 32: + pvfb->pixelFormatDefined = TRUE; pvfb->rgbNotBgr = TRUE; pvfb->blueBits = pvfb->redBits = pvfb->greenBits = 8; break; |