소스 검색

* only load the low byte of the color in PutPixelX

git-svn-id: trunk@41044 -
nickysn 6 년 전
부모
커밋
5556757f95
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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           *)
     out dx, ax
     (* 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
 @@Done:
   end;