Added scanlines to 320x256 Mode-X in DOS port.

This commit is contained in:
stainless
2001-10-01 23:18:15 +00:00
parent 8a35567a5c
commit 3f052df156
5 changed files with 47 additions and 15 deletions

View File

@@ -1004,7 +1004,12 @@ GUIVideoKeys:
GUIkeystoggleoptn byte[scanlines],1
%ifdef __MSDOS__
cmp byte[cvidmode],2
jne .nofullscanlines
jne .nomodeq
jmp .refresh
.nomodeq
cmp byte[cvidmode],5
jne .nofullscanlines
.refresh
mov byte[cbitmode],1
call initvideo2
mov byte[cbitmode],0
@@ -1022,12 +1027,12 @@ GUIVideoKeys:
call ClearScreen
GUIkeystoggleoptn byte[scanlines],3
%ifdef __MSDOS__
cmp byte[cvidmode],2
jne .nohalfscanlines
mov byte[cbitmode],1
call initvideo2
mov byte[cbitmode],0
call GUISetPal
;cmp byte[cvidmode],2
;jne .nohalfscanlines
;mov byte[cbitmode],1
;call initvideo2
;mov byte[cbitmode],0
;call GUISetPal
%endif
.nohalfscanlines
cmp dh,'2'
@@ -1037,12 +1042,12 @@ GUIVideoKeys:
call ClearScreen
GUIkeystoggleoptn byte[scanlines],2
%ifdef __MSDOS__
cmp byte[cvidmode],2
jne .noquarterscanlines
mov byte[cbitmode],1
call initvideo2
mov byte[cbitmode],0
call GUISetPal
;cmp byte[cvidmode],2
;jne .noquarterscanlines
;mov byte[cbitmode],1
;call initvideo2
;mov byte[cbitmode],0
;call GUISetPal
%endif
.noquarterscanlines
cmp dh,'X'