mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-19 09:59:10 +02:00
* Fixed cursors on win2000, winNT when bpp<24
git-svn-id: trunk@12420 -
This commit is contained in:
parent
132732a96b
commit
99dd765724
@ -128,6 +128,7 @@ type
|
|||||||
procedure Init_BPP32_B8G8R8_BIO_TTB(AWidth, AHeight: integer);
|
procedure Init_BPP32_B8G8R8_BIO_TTB(AWidth, AHeight: integer);
|
||||||
procedure Init_BPP32_B8G8R8_M1_BIO_TTB(AWidth, AHeight: integer);
|
procedure Init_BPP32_B8G8R8_M1_BIO_TTB(AWidth, AHeight: integer);
|
||||||
procedure Init_BPP32_B8G8R8A8_BIO_TTB(AWidth, AHeight: integer);
|
procedure Init_BPP32_B8G8R8A8_BIO_TTB(AWidth, AHeight: integer);
|
||||||
|
procedure Init_BPP32_B8G8R8A8_M1_BIO_TTB(AWidth, AHeight: integer);
|
||||||
|
|
||||||
function GetDescriptionFromMask: TRawImageDescription;
|
function GetDescriptionFromMask: TRawImageDescription;
|
||||||
function GetDescriptionFromAlpha: TRawImageDescription;
|
function GetDescriptionFromAlpha: TRawImageDescription;
|
||||||
@ -670,7 +671,7 @@ begin
|
|||||||
MaskBitsPerPixel := 1;
|
MaskBitsPerPixel := 1;
|
||||||
MaskBitOrder := riboBitsInOrder;
|
MaskBitOrder := riboBitsInOrder;
|
||||||
// MaskShift := 0; // the shift (=position) of the mask bit
|
// MaskShift := 0; // the shift (=position) of the mask bit
|
||||||
MaskLineEnd := rileDWordBoundary;
|
MaskLineEnd := rileWordBoundary;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
procedure TRawImageDescription.Init_BPP32_B8G8R8_BIO_TTB(AWidth, AHeight: integer);
|
procedure TRawImageDescription.Init_BPP32_B8G8R8_BIO_TTB(AWidth, AHeight: integer);
|
||||||
@ -741,7 +742,7 @@ begin
|
|||||||
MaskBitsPerPixel := 1;
|
MaskBitsPerPixel := 1;
|
||||||
MaskBitOrder := riboBitsInOrder;
|
MaskBitOrder := riboBitsInOrder;
|
||||||
// MaskShift := 0; // the shift (=position) of the mask bit
|
// MaskShift := 0; // the shift (=position) of the mask bit
|
||||||
MaskLineEnd := rileDWordBoundary;
|
MaskLineEnd := rileWordBoundary;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
function TRawImageDescription.MaskBitsPerLine: PtrUInt;
|
function TRawImageDescription.MaskBitsPerLine: PtrUInt;
|
||||||
@ -789,6 +790,15 @@ begin
|
|||||||
// MaskBitsPerPixel := 0;
|
// MaskBitsPerPixel := 0;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
procedure TRawImageDescription.Init_BPP32_B8G8R8A8_M1_BIO_TTB(AWidth, AHeight: integer);
|
||||||
|
begin
|
||||||
|
Init_BPP32_B8G8R8A8_BIO_TTB(Width, Height);
|
||||||
|
|
||||||
|
MaskBitsPerPixel := 1;
|
||||||
|
MaskBitOrder := riboBitsInOrder;
|
||||||
|
MaskLineEnd := rileWordBoundary;
|
||||||
|
end;
|
||||||
|
|
||||||
|
|
||||||
function TRawImageDescription.GetDescriptionFromMask: TRawImageDescription;
|
function TRawImageDescription.GetDescriptionFromMask: TRawImageDescription;
|
||||||
begin
|
begin
|
||||||
|
@ -649,7 +649,17 @@ begin
|
|||||||
if Desc.AlphaPrec >= 8 then Exit;
|
if Desc.AlphaPrec >= 8 then Exit;
|
||||||
|
|
||||||
if not AddAlphaToDescription(Desc, 8)
|
if not AddAlphaToDescription(Desc, 8)
|
||||||
then Desc.Init_BPP32_B8G8R8A8_BIO_TTB(Desc.Width, Desc.Height);
|
then begin
|
||||||
|
Desc.Init_BPP32_B8G8R8A8_BIO_TTB(Desc.Width, Desc.Height);
|
||||||
|
// copy mask description
|
||||||
|
with TLazIntfImage(AImage).DataDescription do
|
||||||
|
begin
|
||||||
|
Desc.MaskBitsPerPixel := MaskBitsPerPixel;
|
||||||
|
Desc.MaskShift := MaskShift;
|
||||||
|
Desc.MaskLineEnd := MaskLineEnd;
|
||||||
|
Desc.MaskBitOrder := MaskBitOrder;
|
||||||
|
end;
|
||||||
|
end;
|
||||||
|
|
||||||
TLazIntfImage(AImage).DataDescription := Desc;
|
TLazIntfImage(AImage).DataDescription := Desc;
|
||||||
end;
|
end;
|
||||||
|
Loading…
Reference in New Issue
Block a user