浏览代码

* 8086/8088 support in the asm version of DirectPutPixel320

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

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

@@ -2343,7 +2343,8 @@ End;
    mov    di, [X]
    xchg   ah, al            { The value of Y must be in AH }
    add    di, ax
-   shr    ax, 2
+   shr    ax, 1
+   shr    ax, 1
    add    di, ax
    mov    al, byte ptr [CurrentColor]
    { check write mode   }