* FPC_GRAPH_SUPPORTS_TRUECOLOR support in the asm GetPixelX

git-svn-id: trunk@41020 -
This commit is contained in:
nickysn 2019-01-23 15:24:32 +00:00
parent c86da93af8
commit 57ffb6fb07

View File

@ -2523,6 +2523,10 @@ const CrtAddress: word = 0;
(* End selection of plane *)
mov al, ES:[DI]
xor ah, ah
{$ifdef FPC_GRAPH_SUPPORTS_TRUECOLOR}
{ 1 byte shorter than 'xor dx, dx'; will always set dx to 0, because sign(ah)=0 }
cwd
{$endif FPC_GRAPH_SUPPORTS_TRUECOLOR}
end;
{$endif asmgraph}