summaryrefslogtreecommitdiff
path: root/packages
diff options
context:
space:
mode:
authornickysn <nickysn@3ad0048d-3df7-0310-abae-a5850022a9f2>2019-01-28 17:28:10 +0000
committernickysn <nickysn@3ad0048d-3df7-0310-abae-a5850022a9f2>2019-01-28 17:28:10 +0000
commitbbdd2ed8546617ae445816302f1e4b0520303c4b (patch)
tree01ec6edcda115d3d886531456c4de1b729bdb12a /packages
parentf773be008aee8f2775da964e7635e17b928182ff (diff)
downloadfpc-bbdd2ed8546617ae445816302f1e4b0520303c4b.tar.gz
* SetVisual200 and SetVisual350 combined into one routine SetVisual200_350, because they share the same code
git-svn-id: https://svn.freepascal.org/svn/fpc/trunk@41102 3ad0048d-3df7-0310-abae-a5850022a9f2
Diffstat (limited to 'packages')
-rw-r--r--packages/graph/src/go32v2/graph.pp32
1 files changed, 6 insertions, 26 deletions
diff --git a/packages/graph/src/go32v2/graph.pp b/packages/graph/src/go32v2/graph.pp
index e31c0eb981..68292e604d 100644
--- a/packages/graph/src/go32v2/graph.pp
+++ b/packages/graph/src/go32v2/graph.pp
@@ -2231,12 +2231,11 @@ End;
End;
- procedure SetVisual200(page: word);
- { four page support... }
+ procedure SetVisual200_350(page: word);
begin
if page > HardwarePages then exit;
asm
- mov ax,[page] { only lower byte is supPorted. }
+ mov ax,[page] { only lower byte is supported. }
mov ah,05h
push ebp
push esi
@@ -2263,25 +2262,6 @@ End;
end;
end;
- procedure SetVisual350(page: word);
- { one page supPort... }
- begin
- if page > HardwarePages then exit;
- asm
- mov ax,[page] { only lower byte is supPorted. }
- mov ah,05h
- push ebp
- push esi
- push edi
- push ebx
- int 10h
- pop ebx
- pop edi
- pop esi
- pop ebp
- end ['EAX'];
- end;
-
procedure SetActive350(page: word);
{ one page supPort... }
begin
@@ -3569,7 +3549,7 @@ const CrtAddress: word = 0;
mode.MaxX := 639;
mode.MaxY := 199;
mode.HardwarePages := 3;
- mode.SetVisualPage := @SetVisual200;
+ mode.SetVisualPage := @SetVisual200_350;
mode.SetActivePage := @SetActive200;
mode.InitMode := @Init640x200x16;
mode.XAspect := 4500;
@@ -3584,7 +3564,7 @@ const CrtAddress: word = 0;
mode.MaxX := 639;
mode.MaxY := 349;
mode.HardwarePages := 1;
- mode.SetVisualPage := @SetVisual350;
+ mode.SetVisualPage := @SetVisual200_350;
mode.SetActivePage := @SetActive350;
mode.InitMode := @Init640x350x16;
mode.XAspect := 7750;
@@ -3742,7 +3722,7 @@ const CrtAddress: word = 0;
mode.MaxX := 639;
mode.MaxY := 199;
mode.HardwarePages := 3;
- mode.SetVisualPage := @SetVisual200;
+ mode.SetVisualPage := @SetVisual200_350;
mode.SetActivePage := @SetActive200;
mode.InitMode := @Init640x200x16;
mode.XAspect := 4500;
@@ -3757,7 +3737,7 @@ const CrtAddress: word = 0;
mode.MaxX := 639;
mode.MaxY := 349;
mode.HardwarePages := 1;
- mode.SetVisualPage := @SetVisual350;
+ mode.SetVisualPage := @SetVisual200_350;
mode.SetActivePage := @SetActive350;
mode.InitMode := @Init640x350x16;
mode.XAspect := 7750;