diff options
Diffstat (limited to 'vcl/win/gdi/salgdi.cxx')
-rw-r--r-- | vcl/win/gdi/salgdi.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/vcl/win/gdi/salgdi.cxx b/vcl/win/gdi/salgdi.cxx index f117bc9a9ba0..92a0b62879d5 100644 --- a/vcl/win/gdi/salgdi.cxx +++ b/vcl/win/gdi/salgdi.cxx @@ -178,11 +178,11 @@ void ImplInitSalGDI() if( bDither16 ) { // create DIBPattern for 16Bit dithering - long n; + tools::Long n; pSalData->mhDitherDIB = GlobalAlloc( GMEM_FIXED, sizeof( BITMAPINFOHEADER ) + 192 ); pSalData->mpDitherDIB = static_cast<BYTE*>(GlobalLock( pSalData->mhDitherDIB )); - pSalData->mpDitherDiff = new long[ 256 ]; + pSalData->mpDitherDiff = new tools::Long[ 256 ]; pSalData->mpDitherLow = new BYTE[ 256 ]; pSalData->mpDitherHigh = new BYTE[ 256 ]; pSalData->mpDitherDIBData = pSalData->mpDitherDIB + sizeof( BITMAPINFOHEADER ); @@ -251,12 +251,12 @@ void ImplInitSalGDI() if( pSalData->mhDitherPal ) { // create DIBPattern for 8Bit dithering - long const nSize = sizeof( BITMAPINFOHEADER ) + ( 256 * sizeof( short ) ) + 64; - long n; + tools::Long const nSize = sizeof( BITMAPINFOHEADER ) + ( 256 * sizeof( short ) ) + 64; + tools::Long n; pSalData->mhDitherDIB = GlobalAlloc( GMEM_FIXED, nSize ); pSalData->mpDitherDIB = static_cast<BYTE*>(GlobalLock( pSalData->mhDitherDIB )); - pSalData->mpDitherDiff = new long[ 256 ]; + pSalData->mpDitherDiff = new tools::Long[ 256 ]; pSalData->mpDitherLow = new BYTE[ 256 ]; pSalData->mpDitherHigh = new BYTE[ 256 ]; pSalData->mpDitherDIBData = pSalData->mpDitherDIB + sizeof( BITMAPINFOHEADER ) + ( 256 * sizeof( short ) ); |