mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-02 18:30:33 +02:00
Amiga: Video Unit ObtainBestPen instead of ObtainPen for low depth screens
git-svn-id: trunk@28704 -
This commit is contained in:
parent
34a726b89d
commit
e7eb77a94a
@ -256,9 +256,8 @@ begin
|
|||||||
|
|
||||||
for Counter := 0 to 15 do
|
for Counter := 0 to 15 do
|
||||||
begin
|
begin
|
||||||
VideoPens[Counter] := ObtainPen(VideoColorMap, LongWord(-1),
|
VideoPens[Counter] := ObtainBestPenA(VideoColorMap,
|
||||||
vgacolors[counter, 0] shl 24, vgacolors[counter, 1] shl 24, vgacolors[counter, 2] shl 24,
|
vgacolors[counter, 0] shl 24, vgacolors[counter, 1] shl 24, vgacolors[counter, 2] shl 24, nil);
|
||||||
PEN_EXCLUSIVE);
|
|
||||||
{$ifdef VIDEODEBUG}
|
{$ifdef VIDEODEBUG}
|
||||||
If VideoPens[Counter] = -1 then
|
If VideoPens[Counter] = -1 then
|
||||||
WriteLn('errr color[',Counter,'] = ', VideoPens[Counter])
|
WriteLn('errr color[',Counter,'] = ', VideoPens[Counter])
|
||||||
|
Loading…
Reference in New Issue
Block a user