mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-23 20:40:01 +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
|
||||
begin
|
||||
VideoPens[Counter] := ObtainPen(VideoColorMap, LongWord(-1),
|
||||
vgacolors[counter, 0] shl 24, vgacolors[counter, 1] shl 24, vgacolors[counter, 2] shl 24,
|
||||
PEN_EXCLUSIVE);
|
||||
VideoPens[Counter] := ObtainBestPenA(VideoColorMap,
|
||||
vgacolors[counter, 0] shl 24, vgacolors[counter, 1] shl 24, vgacolors[counter, 2] shl 24, nil);
|
||||
{$ifdef VIDEODEBUG}
|
||||
If VideoPens[Counter] = -1 then
|
||||
WriteLn('errr color[',Counter,'] = ', VideoPens[Counter])
|
||||
|
Loading…
Reference in New Issue
Block a user