summaryrefslogtreecommitdiff
path: root/vcl/aqua
diff options
context:
space:
mode:
authorPatrick Luby <pluby@openoffice.org>2001-01-04 21:11:21 +0000
committerPatrick Luby <pluby@openoffice.org>2001-01-04 21:11:21 +0000
commit77053d55164eb86d15dd45dfb7ca231886f53d0f (patch)
tree7c9e8ce3f9fd8eb5ebb7d94294945b5edc9a64e3 /vcl/aqua
parent4f13b59dd80f79f8d7d97e67216e93e0986bbd82 (diff)
Made CreateVirtualDevice always create a 32 bit GWorld
Diffstat (limited to 'vcl/aqua')
-rw-r--r--vcl/aqua/source/app/salinst.cxx11
1 files changed, 7 insertions, 4 deletions
diff --git a/vcl/aqua/source/app/salinst.cxx b/vcl/aqua/source/app/salinst.cxx
index 6ac9d03f46b7..f5425fda6838 100644
--- a/vcl/aqua/source/app/salinst.cxx
+++ b/vcl/aqua/source/app/salinst.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: salinst.cxx,v $
*
- * $Revision: 1.20 $
+ * $Revision: 1.21 $
*
- * last change: $Author: pluby $ $Date: 2001-01-03 21:29:22 $
+ * last change: $Author: pluby $ $Date: 2001-01-04 22:11:21 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -330,8 +330,11 @@ SalVirtualDevice* SalInstance::CreateVirtualDevice( SalGraphics* pGraphics,
{
SalVirtualDevice *pVirDev = new SalVirtualDevice;
- // Cache values for when SalVirtualDevice::GetGraphics() is invoked
- pVirDev->maVirDevData.mnBitCount = nBitCount;
+ // Cache values for when SalVirtualDevice::GetGraphics() is invoked.
+ // Note that we force the GWorld to a 32 bit pixel depth so that the
+ // QuickDraw routines can smooth out images when copying the GWorld's
+ // pixels to a window.
+ pVirDev->maVirDevData.mnBitCount = 32;
pVirDev->maVirDevData.mnWidth = nDX;
pVirDev->maVirDevData.mnHeight = nDY;