Browse Source

* only load the low byte of the color in PutPixelX

git-svn-id: trunk@41044 -
nickysn 6 years ago
parent
commit
5556757f95
1 changed files with 1 additions and 1 deletions
  1. 1 1
      packages/graph/src/msdos/graph.pp

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

@@ -2654,7 +2654,7 @@ const CrtAddress: word = 0;
     shl ah, cl                ; (* Get Plane Select Value           *)
     shl ah, cl                ; (* Get Plane Select Value           *)
     out dx, ax
     out dx, ax
     (* End selection of plane *)
     (* End selection of plane *)
-    mov ax,[Color]            ; { only lower byte is used. }
+    mov al, byte ptr [Color]  ; { only lower byte is used. }
     mov es:[di], al
     mov es:[di], al
 @@Done:
 @@Done:
   end;
   end;