浏览代码

* FPC_GRAPH_SUPPORTS_TRUECOLOR support in the asm GetPixelX

git-svn-id: trunk@41020 -
nickysn 6 年之前
父节点
当前提交
57ffb6fb07
共有 1 个文件被更改,包括 4 次插入0 次删除
  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 *)
     (* End selection of plane *)
     mov al, ES:[DI]
     mov al, ES:[DI]
     xor ah, ah
     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;
   end;
 {$endif asmgraph}
 {$endif asmgraph}