Browse Source

- don't save/restore eax and ecx in PutPixel320, because they don't need to be preserved by the register calling convention

git-svn-id: trunk@41110 -
nickysn 6 years ago
parent
commit
23aec76ae1
1 changed files with 0 additions and 4 deletions
  1. 0 4
      packages/graph/src/go32v2/graph.pp

+ 0 - 4
packages/graph/src/go32v2/graph.pp

@@ -2288,9 +2288,7 @@ End;
       {# Var X located in register ax
       {# Var X located in register ax
        # Var Y located in register dx
        # Var Y located in register dx
        # Var Pixel located in register cx }
        # Var Pixel located in register cx }
-      push eax
       push ebx
       push ebx
-      push ecx
       push edi
       push edi
       movsx  edi, ax
       movsx  edi, ax
       movsx  ebx, dx
       movsx  ebx, dx
@@ -2315,9 +2313,7 @@ End;
       mov    fs:[edi+ebx*4+$a0000], al
       mov    fs:[edi+ebx*4+$a0000], al
 @putpix320done:
 @putpix320done:
       pop edi
       pop edi
-      pop ecx
       pop ebx
       pop ebx
-      pop eax
  end;
  end;