浏览代码

* only read the low byte of the pixel color in the asm version of PutPixel320

git-svn-id: trunk@40922 -
nickysn 6 年之前
父节点
当前提交
9f4e6c48b3
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      packages/graph/src/msdos/graph.pp

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

@@ -2269,7 +2269,7 @@ End;
       shr    ax, 1
       shr    ax, 1
       add    di, ax
-      mov    ax, [Pixel]
+      mov    al, byte ptr [Pixel]
       mov    es:[di], al
 @@Done:
     end ['ax','di'];