Updating
This commit is contained in:
@@ -167,14 +167,10 @@ DWORD PureBitmap::getBitmapBits(GlobalData<BYTE> &bitmapBytes,BitmapInfo::BitsPe
|
||||
BitmapInfo bmInfo;
|
||||
DWORD scanLines(0);
|
||||
DWORD scanLineWidth;
|
||||
WORD scanWidth;
|
||||
WORD scanHeight;
|
||||
|
||||
if(!isOkay())return scanLines;
|
||||
scanLineWidth=width();
|
||||
if(scanLineWidth%2L)scanLineWidth++;
|
||||
scanWidth=scanLineWidth;
|
||||
scanHeight=height();
|
||||
bitmapBytes.size(scanLineWidth*(DWORD)height()*(bitsPerPixel/8));
|
||||
systemPalette.systemPalette();
|
||||
bmInfo.width(width());
|
||||
@@ -193,14 +189,10 @@ DWORD PureBitmap::getBitmapBits(GlobalData<BYTE> &bitmapBytes,BitmapInfo::BitsPe
|
||||
BitmapInfo bmInfo;
|
||||
DWORD scanLines(0);
|
||||
DWORD scanLineWidth;
|
||||
WORD scanWidth;
|
||||
WORD scanHeight;
|
||||
|
||||
if(!isOkay())return scanLines;
|
||||
scanLineWidth=width();
|
||||
if(scanLineWidth%2L)scanLineWidth++;
|
||||
scanWidth=scanLineWidth;
|
||||
scanHeight=height();
|
||||
bitmapBytes.size(scanLineWidth*(DWORD)height()*(bitsPerPixel/8));
|
||||
purePalette.systemPalette();
|
||||
bmInfo.width(width());
|
||||
@@ -238,14 +230,10 @@ DWORD PureBitmap::getBitmapBits(GlobalData<BYTE> &bitmapBytes,BOOL bottomUp)cons
|
||||
BitmapInfo bmInfo;
|
||||
DWORD scanLines(0);
|
||||
DWORD scanLineWidth;
|
||||
WORD scanWidth;
|
||||
WORD scanHeight;
|
||||
|
||||
if(!isOkay())return scanLines;
|
||||
scanLineWidth=width();
|
||||
if(scanLineWidth%2L)scanLineWidth++;
|
||||
scanWidth=scanLineWidth;
|
||||
scanHeight=height();
|
||||
bitmapBytes.size(scanLineWidth*(DWORD)height()*(mBitmap.bmBitsPixel/8));
|
||||
systemPalette.systemPalette();
|
||||
bmInfo.width(width());
|
||||
@@ -261,16 +249,12 @@ DWORD PureBitmap::setBitmapBits(GlobalData<BYTE> &bitmapBytes,BOOL bottomUp)cons
|
||||
{
|
||||
DWORD scanLines(0);
|
||||
DWORD scanLineWidth;
|
||||
DWORD scanWidth;
|
||||
DWORD scanHeight;
|
||||
PureDevice pureDevice;
|
||||
BitmapInfo bmInfo;
|
||||
|
||||
if(!isOkay())return scanLines;
|
||||
scanLineWidth=width();
|
||||
if(scanLineWidth%2L)scanLineWidth++;
|
||||
scanWidth=scanLineWidth;
|
||||
scanHeight=height();
|
||||
bitmapBytes.size(scanLineWidth*(DWORD)height()*(mBitmap.bmBitsPixel/8));
|
||||
PurePalette systemPalette;
|
||||
systemPalette.systemPalette();
|
||||
|
||||
Reference in New Issue
Block a user