diff options
author | Thomas Arnhold <thomas@arnhold.org> | 2012-02-20 21:05:03 +0100 |
---|---|---|
committer | Thomas Arnhold <thomas@arnhold.org> | 2012-02-20 22:19:37 +0100 |
commit | ced95abf531d83dfddd7ab5b30b20b044a9ba1f9 (patch) | |
tree | 4377aa60a67ffb77dbd753cc056aefacfcd2c6de /vcl/unx/generic | |
parent | e656e2cb0bcf9281b52fac7692b541d5a0f9dde6 (diff) |
vcl: simplify logic
Thanks to Cor Nouws
Diffstat (limited to 'vcl/unx/generic')
-rw-r--r-- | vcl/unx/generic/app/saldisp.cxx | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/vcl/unx/generic/app/saldisp.cxx b/vcl/unx/generic/app/saldisp.cxx index 52690656beeb..d6060d5f339c 100644 --- a/vcl/unx/generic/app/saldisp.cxx +++ b/vcl/unx/generic/app/saldisp.cxx @@ -277,10 +277,7 @@ sal_Bool SalDisplay::BestVisual( Display *pDisplay, } else if( pVInfos[i].c_class == PseudoColor ) { - if( pVInfos[i].depth <= 8 ) - bUsable = sal_True; - else if( pVInfos[i].depth == 12 ) - bUsable = sal_True; + bUsable = sal_True; } pWeight[ i ] = bUsable ? nTrueColor*pVInfos[i].depth : -1024; pWeight[ i ] -= pVInfos[ i ].visualid; |