Browse Source

* perform the viewport adjustment in asm instead of pascal in PutPixel16

git-svn-id: trunk@41002 -
nickysn 6 years ago
parent
commit
0199177c21
1 changed files with 2 additions and 2 deletions
  1. 2 2
      packages/graph/src/msdos/graph.pp

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

@@ -1597,11 +1597,11 @@ end;
       if (Y < 0) or (Y > ViewHeight) then
         exit;
     end;
-    X:= X + StartXViewPort;
-    Y:= Y + StartYViewPort;
       asm
         mov  si, [X]
         mov  bx, [Y]
+        add  si, [StartXViewPort]
+        add  bx, [StartYViewPort]
 {$ifdef FPC_MM_HUGE}
         mov  ax, SEG SegA000
         mov  es, ax