Kaynağa Gözat

* FPC_GRAPH_SUPPORTS_TRUECOLOR support in the asm GetPixelX

git-svn-id: trunk@41020 -
nickysn 6 yıl önce
ebeveyn
işleme
57ffb6fb07
1 değiştirilmiş dosya ile 4 ekleme ve 0 silme
  1. 4 0
      packages/graph/src/msdos/graph.pp

+ 4 - 0
packages/graph/src/msdos/graph.pp

@@ -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}