summaryrefslogtreecommitdiff
path: root/goodies
diff options
context:
space:
mode:
authorOliver Bolte <obo@openoffice.org>2006-10-12 14:32:46 +0000
committerOliver Bolte <obo@openoffice.org>2006-10-12 14:32:46 +0000
commit89ae78b9ace09e2e10fc269cfba501a627841e7f (patch)
tree7e10352230729c89db8076cf161aec64b914a820 /goodies
parent6ec6bcae7ec8389ddc945d74d1ea4d2b35bb3df8 (diff)
INTEGRATION: CWS sb59 (1.7.20); FILE MERGED
2006/08/07 14:31:06 sb 1.7.20.1: #i67487# Made code warning-free (wntmsci10).
Diffstat (limited to 'goodies')
-rw-r--r--goodies/source/base3d/b3dcommn.cxx14
1 files changed, 7 insertions, 7 deletions
diff --git a/goodies/source/base3d/b3dcommn.cxx b/goodies/source/base3d/b3dcommn.cxx
index 89028c20f9bc..6b88a8dd7e81 100644
--- a/goodies/source/base3d/b3dcommn.cxx
+++ b/goodies/source/base3d/b3dcommn.cxx
@@ -4,9 +4,9 @@
*
* $RCSfile: b3dcommn.cxx,v $
*
- * $Revision: 1.8 $
+ * $Revision: 1.9 $
*
- * last change: $Author: obo $ $Date: 2006-09-17 15:36:59 $
+ * last change: $Author: obo $ $Date: 2006-10-12 15:32:46 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -718,15 +718,15 @@ void Base3DCommon::Create3DTriangle(UINT32 nInd1, UINT32 nInd2, UINT32 nInd3)
{
if(GetShadeModel() == Base3DFlat && nNumPoints != 0)
{
- UINT16 aRed(0), aGreen(0), aBlue(0), aAlpha(0);
+ unsigned int aRed(0), aGreen(0), aBlue(0), aAlpha(0);
UINT32 i;
for(i=0;i<nNumPoints;i++)
{
B3dEntity& rEnt = aBuffers[aEdgeIndex[i]];
- aRed += (UINT16)rEnt.Color().GetRed();
- aGreen += (UINT16)rEnt.Color().GetGreen();
- aBlue += (UINT16)rEnt.Color().GetBlue();
- aAlpha += (UINT16)rEnt.Color().GetTransparency();
+ aRed += rEnt.Color().GetRed();
+ aGreen += rEnt.Color().GetGreen();
+ aBlue += rEnt.Color().GetBlue();
+ aAlpha += rEnt.Color().GetTransparency();
}
B3dColor aCol((UINT8)(aAlpha / nNumPoints),
(UINT8)(aRed / nNumPoints),