mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-28 22:40:30 +02:00
Amiga: 32 bit set color functions for OS 1.x
This commit is contained in:
parent
cd8aa3f0e0
commit
aced88e43c
@ -2572,6 +2572,9 @@ procedure SetABPenDrMd(Rp: PRastPort; APen, BPen, Drawmode: LongWord); inline;
|
|||||||
function AllocBitMap(SizeX, SizeY, Depth, Flags: LongWord; friend_bitmap: PBitMap): PBitMap;
|
function AllocBitMap(SizeX, SizeY, Depth, Flags: LongWord; friend_bitmap: PBitMap): PBitMap;
|
||||||
procedure FreeBitMap(Bm: PBitMap);
|
procedure FreeBitMap(Bm: PBitMap);
|
||||||
function GetBitMapAttr(Bm: PBitMap; AttrNum: LongWord): LongWord;
|
function GetBitMapAttr(Bm: PBitMap; AttrNum: LongWord): LongWord;
|
||||||
|
procedure SetRGB32(Vp: PViewPort; n: LongWord; r, g, b: LongWord); inline;
|
||||||
|
procedure SetRGB32CM(Cm: PColorMap; n, r, g, b: LongWord); inline;
|
||||||
|
procedure LoadRGB32(Vp: PViewPort ;const table: PLongWord);
|
||||||
{$endif}
|
{$endif}
|
||||||
|
|
||||||
|
|
||||||
@ -2640,6 +2643,39 @@ begin
|
|||||||
GetBitMapAttr := 0;
|
GetBitMapAttr := 0;
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
procedure SetRGB32(Vp: PViewPort; n: LongWord; r, g, b: LongWord); inline;
|
||||||
|
begin
|
||||||
|
SetRGB4(Vp, n, r shr 28, g shr 28, b shr 28);
|
||||||
|
end;
|
||||||
|
|
||||||
|
procedure SetRGB32CM(Cm: PColorMap; n, r, g, b: LongWord); inline;
|
||||||
|
begin
|
||||||
|
SetRGB4CM(Cm, n, r shr 28, g shr 28, b shr 28);
|
||||||
|
end;
|
||||||
|
|
||||||
|
procedure LoadRGB32(Vp: PViewPort; const Table: PLongWord);
|
||||||
|
var
|
||||||
|
Num: LongWord;
|
||||||
|
R: PLongWord;
|
||||||
|
Red, Green, Blue: LongWord;
|
||||||
|
i: Integer;
|
||||||
|
begin
|
||||||
|
R := Table;
|
||||||
|
Num := (R^) shr 16;
|
||||||
|
Inc(R);
|
||||||
|
//
|
||||||
|
for i := 0 to Num - 1 do
|
||||||
|
begin
|
||||||
|
Red := R^;
|
||||||
|
Inc(R);
|
||||||
|
Green := R^;
|
||||||
|
Inc(R);
|
||||||
|
Blue := R^;
|
||||||
|
Inc(R);
|
||||||
|
SetRGB32(Vp, i, Red, Green, Blue);
|
||||||
|
end;
|
||||||
|
end;
|
||||||
{$endif}
|
{$endif}
|
||||||
|
|
||||||
{$if not defined(AMIGA_V1_2_ONLY)}
|
{$if not defined(AMIGA_V1_2_ONLY)}
|
||||||
|
Loading…
Reference in New Issue
Block a user