summaryrefslogtreecommitdiff
path: root/vcl/source/gdi/bitmap.cxx
diff options
context:
space:
mode:
authorVladimir Glazounov <vg@openoffice.org>2004-01-06 12:27:32 +0000
committerVladimir Glazounov <vg@openoffice.org>2004-01-06 12:27:32 +0000
commit59ddc371b11e29344b3fcd9d14f2b1ba359ef3e0 (patch)
treef62a278eff763271019a5389f0085a17d25ad2c7 /vcl/source/gdi/bitmap.cxx
parent57ed7cd053fded78222d0ec5ce115f1eb3035e34 (diff)
INTEGRATION: CWS vclcleanup02 (1.7.204); FILE MERGED
2003/12/17 16:04:03 mt 1.7.204.5: #i23061# header cleanup, remove #ifdef ???_CXX and #define ???_CXX, also removed .impl files and fixed soke windows compiler warnings 2003/12/16 18:15:13 mt 1.7.204.4: #i23061# And more cleanups... 2003/12/10 15:59:20 mt 1.7.204.3: #i23061# VCL cleanup, removed headers, methods and types... 2003/12/05 16:44:26 mt 1.7.204.2: RESYNC: (1.7-1.8); FILE MERGED 2003/12/05 13:22:19 mt 1.7.204.1: #i23061# Code cleanups, fixed gcc WAll warnings
Diffstat (limited to 'vcl/source/gdi/bitmap.cxx')
-rw-r--r--vcl/source/gdi/bitmap.cxx32
1 files changed, 11 insertions, 21 deletions
diff --git a/vcl/source/gdi/bitmap.cxx b/vcl/source/gdi/bitmap.cxx
index e53d4077465d..74c3154bddbf 100644
--- a/vcl/source/gdi/bitmap.cxx
+++ b/vcl/source/gdi/bitmap.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: bitmap.cxx,v $
*
- * $Revision: 1.8 $
+ * $Revision: 1.9 $
*
- * last change: $Author: rt $ $Date: 2003-12-01 13:16:55 $
+ * last change: $Author: vg $ $Date: 2004-01-06 13:27:32 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -59,8 +59,6 @@
*
************************************************************************/
-#define _SV_BITMAP_CXX
-
#ifndef _RTL_CRC_H_
#include <rtl/crc.h>
#endif
@@ -73,8 +71,8 @@
#ifndef _SV_BMPACC_HXX
#include <bmpacc.hxx>
#endif
-#ifndef _SV_POLY_HXX
-#include <poly.hxx>
+#ifndef _TL_POLY_HXX
+#include <tools/poly.hxx>
#endif
#ifndef _SV_OUTDEV_HXX
#include <outdev.hxx>
@@ -83,7 +81,7 @@
#include <impbmp.hxx>
#endif
#ifndef _SV_RC_H
-#include <rc.h>
+#include <tools/rc.h>
#endif
#ifndef _SV_BITMAP_HXX
#include <bitmap.hxx>
@@ -539,8 +537,8 @@ BOOL Bitmap::Erase( const Color& rFillColor )
if( pWriteAcc )
{
const ULONG nFormat = pWriteAcc->GetScanlineFormat();
- BYTE cIndex;
- BOOL bFast;
+ BYTE cIndex = 0;
+ BOOL bFast = FALSE;
switch( nFormat )
{
@@ -591,7 +589,7 @@ BOOL Bitmap::Erase( const Color& rFillColor )
if( bFast )
{
const ULONG nBufSize = pWriteAcc->GetScanlineSize() * pWriteAcc->Height();
- HMEMSET( pWriteAcc->GetBuffer(), cIndex, nBufSize );
+ memset( pWriteAcc->GetBuffer(), cIndex, nBufSize );
}
else
{
@@ -692,9 +690,9 @@ BOOL Bitmap::Mirror( ULONG nMirrorFlags )
for( long nY = 0L, nOther = nHeight1; nY < nHeight_2; nY++, nOther-- )
{
- HMEMCPY( pBuffer, pAcc->GetScanline( nY ), nScanSize );
- HMEMCPY( pAcc->GetScanline( nY ), pAcc->GetScanline( nOther ), nScanSize );
- HMEMCPY( pAcc->GetScanline( nOther ), pBuffer, nScanSize );
+ memcpy( pBuffer, pAcc->GetScanline( nY ), nScanSize );
+ memcpy( pAcc->GetScanline( nY ), pAcc->GetScanline( nOther ), nScanSize );
+ memcpy( pAcc->GetScanline( nOther ), pBuffer, nScanSize );
}
delete[] pBuffer;
@@ -1136,8 +1134,6 @@ BOOL Bitmap::Expand( ULONG nDX, ULONG nDY, const Color* pInitColor )
if( pReadAcc )
{
-// Was soll den das ?
-// BitmapPalette aBmpPal( pReadAcc ? pReadAcc->GetPalette() : BitmapPalette() );
BitmapPalette aBmpPal( pReadAcc->GetPalette() );
Bitmap aNewBmp( aNewSize, GetBitCount(), &aBmpPal );
BitmapWriteAccess* pWriteAcc = aNewBmp.AcquireWriteAccess();
@@ -1145,7 +1141,6 @@ BOOL Bitmap::Expand( ULONG nDX, ULONG nDY, const Color* pInitColor )
if( pWriteAcc )
{
BitmapColor aColor;
- const ULONG nScanlineSize = pReadAcc->GetScanlineSize();
const long nNewX = nWidth;
const long nNewY = nHeight;
const long nNewWidth = pWriteAcc->Width();
@@ -1427,11 +1422,6 @@ Region Bitmap::CreateRegion( const Color& rColor, const Rectangle& rRect ) const
return aRegion;
}
-//fuer WIN16 Borland
-#ifdef WIN
-#pragma codeseg BITMAP_SEG1
-#endif
-
// ------------------------------------------------------------------
BOOL Bitmap::Replace( const Bitmap& rMask, const Color& rReplaceColor )