summaryrefslogtreecommitdiff
path: root/dbaccess
diff options
context:
space:
mode:
authorJoseph Powers <jpowers27@cox.net>2010-11-11 11:57:42 -0800
committerSebastian Spaeth <Sebastian@SSpaeth.de>2010-11-12 10:24:48 +0100
commitc5561d7ebbd597cfe699d8c068ffd5f35d622c08 (patch)
tree208eeba5e7780fae0d639a70b22e6062788e5182 /dbaccess
parent7c26a84a582641c671b35516ef0e6edf63c3752f (diff)
Removed BmpColorMode from SvLBoxContextBmp_Impl and SvLBoxButtonData - base
Diffstat (limited to 'dbaccess')
-rw-r--r--dbaccess/source/ui/browser/dsEntriesNoExp.cxx6
-rw-r--r--dbaccess/source/ui/control/tabletree.cxx9
2 files changed, 4 insertions, 11 deletions
diff --git a/dbaccess/source/ui/browser/dsEntriesNoExp.cxx b/dbaccess/source/ui/browser/dsEntriesNoExp.cxx
index 26c7860a474e..3fbac5530401 100644
--- a/dbaccess/source/ui/browser/dsEntriesNoExp.cxx
+++ b/dbaccess/source/ui/browser/dsEntriesNoExp.cxx
@@ -256,10 +256,8 @@ void SbaTableQueryBrowser::notifyHiContrastChanged()
SvLBoxContextBmp* pContextBitmapItem = static_cast< SvLBoxContextBmp* >( pItem );
- pContextBitmapItem->SetBitmap1( aImage, BMP_COLOR_NORMAL );
- pContextBitmapItem->SetBitmap2( aImage, BMP_COLOR_NORMAL );
- pContextBitmapItem->SetBitmap1( aImageHC, BMP_COLOR_HIGHCONTRAST );
- pContextBitmapItem->SetBitmap2( aImageHC, BMP_COLOR_HIGHCONTRAST );
+ pContextBitmapItem->SetBitmap1( aImage );
+ pContextBitmapItem->SetBitmap2( aImage );
break;
}
diff --git a/dbaccess/source/ui/control/tabletree.cxx b/dbaccess/source/ui/control/tabletree.cxx
index 0117dccde9c1..22543ecac6af 100644
--- a/dbaccess/source/ui/control/tabletree.cxx
+++ b/dbaccess/source/ui/control/tabletree.cxx
@@ -149,13 +149,8 @@ void OTableTreeListBox::notifyHiContrastChanged()
m_pImageProvider->getImages( sCompleteName, DatabaseObject::TABLE, aImage, aImageHC );
}
- pContextBitmapItem->SetBitmap1( aImage, BMP_COLOR_NORMAL );
- pContextBitmapItem->SetBitmap2( aImage, BMP_COLOR_NORMAL );
- pContextBitmapItem->SetBitmap1( aImageHC, BMP_COLOR_HIGHCONTRAST );
- pContextBitmapItem->SetBitmap2( aImageHC, BMP_COLOR_HIGHCONTRAST );
- // TODO: Now that we give both images to the entry item, it is not necessary anymore
- // to do this anytime HC changes - the tree control will do this itself now.
- // We would only need to properly initialize newly inserted entries.
+ pContextBitmapItem->SetBitmap1( aImage );
+ pContextBitmapItem->SetBitmap2( aImage );
break;
}
}