+ also save/restore DS before/after the int 10h call inside SetCGAPalette and SetCGABorder

git-svn-id: trunk@41014 -
This commit is contained in:
nickysn 2019-01-23 13:31:43 +00:00
parent 9da40ee818
commit b48e901ed8

View File

@ -566,23 +566,27 @@ var
procedure SetCGAPalette(CGAPaletteID: Byte); assembler;
asm
mov ax,CGAPaletteID
push bp
mov bl, al
mov bh, 1
mov ah, 0Bh
push ds
push bp
int 10h
pop bp
pop ds
end;
procedure SetCGABorder(CGABorder: Byte); assembler;
asm
mov ax,CGABorder
push bp
mov bl, al
mov bh, 0
mov ah, 0Bh
push ds
push bp
int 10h
pop bp
pop ds
end;
procedure SetBkColorCGA320(ColorNum: ColorType);