[Libreoffice-commits] core.git: vcl/win
Caolán McNamara
caolanm at redhat.com
Fri Jun 14 12:04:48 PDT 2013
vcl/win/source/gdi/salbmp.cxx | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
New commits:
commit 0be8f5aed649d2de8ba858835ee70a440d66f6d7
Author: Caolán McNamara <caolanm at redhat.com>
Date: Fri Jun 14 20:03:55 2013 +0100
if we have to define min/max then use those again
Change-Id: I631f0c872b7ec7e6dada1488e03eae3f75987fc6
diff --git a/vcl/win/source/gdi/salbmp.cxx b/vcl/win/source/gdi/salbmp.cxx
index 72bc268..15b4698 100644
--- a/vcl/win/source/gdi/salbmp.cxx
+++ b/vcl/win/source/gdi/salbmp.cxx
@@ -796,7 +796,7 @@ HGLOBAL WinSalBitmap::ImplCreateDIB( const Size& rSize, sal_uInt16 nBits, const
if( nColors )
{
// copy the palette entries if any
- const sal_uInt16 nMinCount = std::min( nColors, rPal.GetEntryCount() );
+ const sal_uInt16 nMinCount = min( nColors, rPal.GetEntryCount() );
if( nMinCount )
memcpy( pBI->bmiColors, rPal.ImplGetColorBuffer(), nMinCount * sizeof(RGBQUAD) );
}
@@ -964,7 +964,7 @@ void WinSalBitmap::ReleaseBuffer( BitmapBuffer* pBuffer, bool bReadOnly )
PBITMAPINFO pBI = (PBITMAPINFO) GlobalLock( mhDIB );
const sal_uInt16 nCount = pBuffer->maPalette.GetEntryCount();
const sal_uInt16 nDIBColorCount = ImplGetDIBColorCount( mhDIB );
- memcpy( pBI->bmiColors, pBuffer->maPalette.ImplGetColorBuffer(), std::min( nDIBColorCount, nCount ) * sizeof( RGBQUAD ) );
+ memcpy( pBI->bmiColors, pBuffer->maPalette.ImplGetColorBuffer(), min( nDIBColorCount, nCount ) * sizeof( RGBQUAD ) );
GlobalUnlock( mhDIB );
}
More information about the Libreoffice-commits
mailing list