Explorar o código

* use 'cwd' instead of 'xor dx, dx' in the asm version GetPixel320

git-svn-id: trunk@40969 -
nickysn %!s(int64=6) %!d(string=hai) anos
pai
achega
300e584936
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      packages/graph/src/msdos/graph.pp

+ 2 - 1
packages/graph/src/msdos/graph.pp

@@ -2303,7 +2303,8 @@ End;
     seges  lodsb
     xor    ah, ah
 {$ifdef FPC_GRAPH_SUPPORTS_TRUECOLOR}
-    xor    dx, dx
+    { 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}