From 10e3da7bf2125091ab69efa2b8f72dc1232052f0 Mon Sep 17 00:00:00 2001 From: Thomas Arnhold Date: Sat, 28 Jan 2012 21:27:54 +0100 Subject: [PATCH] sal_TrueCOLOR is never defined --- vcl/unx/generic/app/saldisp.cxx | 24 ------------------------ 1 file changed, 24 deletions(-) diff --git a/vcl/unx/generic/app/saldisp.cxx b/vcl/unx/generic/app/saldisp.cxx index 119f08c232a4..b3431955a3c9 100644 --- a/vcl/unx/generic/app/saldisp.cxx +++ b/vcl/unx/generic/app/saldisp.cxx @@ -291,30 +291,6 @@ sal_Bool SalDisplay::BestVisual( Display *pDisplay, nTrueColor = 2048; if( pVInfos[i].depth == 24 ) bUsable = sal_True; -#ifdef sal_TrueCOLOR8 - else if( pVInfos[i].depth == 8 ) - { - nTrueColor = -1; // strongly discourage 8 bit true color - bUsable = sal_True; - } -#endif -#ifdef sal_TrueCOLOR15 - else if( pVInfos[i].depth == 15 ) - bUsable = sal_True; -#endif -#ifdef sal_TrueCOLOR16 - else if( pVInfos[i].depth == 16 ) - bUsable = sal_True; -#endif -#ifdef sal_TrueCOLOR32 - else if( pVInfos[i].depth == 32 ) - { - nTrueColor = 256; - // we do not have use for an alpha channel - // better use a 24 or 16 bit truecolor visual if possible - bUsable = sal_True; - } -#endif } else if( pVInfos[i].c_class == PseudoColor ) {