Ver Fonte

* swapped ax and cx in PutPixelX

git-svn-id: trunk@41036 -
nickysn há 6 anos atrás
pai
commit
d04f801ee2
1 ficheiros alterados com 3 adições e 3 exclusões
  1. 3 3
      packages/graph/src/msdos/graph.pp

+ 3 - 3
packages/graph/src/msdos/graph.pp

@@ -2637,9 +2637,9 @@ const CrtAddress: word = 0;
       shl di, 1
       add di, bx                   ;  (* Multiply Value by 80             *)
       (* End multiply by 80  *)
-      mov cx, [X]
-      add cx, [StartXViewPort]
-      mov ax, cx
+      mov ax, [X]
+      add ax, [StartXViewPort]
+      mov cx, ax
       {DI = Y * LINESIZE, BX = X, coordinates admissible}
       shr ax, 1
       shr ax, 1