This commit is contained in:
2024-08-16 13:56:54 -04:00
parent 75df00b3e3
commit 2e364ff470
19 changed files with 211 additions and 125 deletions

View File

@@ -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();