Ver Fonte

* load only the low byte of CurrentColor in DirectPutPixelX

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

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

@@ -2725,7 +2725,7 @@ const CrtAddress: word = 0;
    shl ah, cl                ; (* Get Plane Select Value           *)
    out dx, ax
  (* End selection of plane *)
-   mov ax,[CurrentColor]     ; { only lower byte is used. }
+   mov al, byte ptr [CurrentColor] ; { only lower byte is used. }
    cmp [CurrentWriteMode],XORPut   { check write mode   }
    jne @MOVMode
    mov ah,es:[di]        { read the byte...             }