Fixed video mode saving in windows port

This commit is contained in:
pagefault
2001-10-02 20:25:12 +00:00
parent 85357cd84f
commit d3b7ddf96d

View File

@@ -1471,12 +1471,20 @@ NEWSYM getcfg
ret ret
.novideo2 .novideo2
cmp byte[.stringb],'2' cmp byte[.stringb],'2'
jne .novideo jne .novideo3
mov al,[.stringb+1] mov al,[.stringb+1]
sub al,28 sub al,28
mov [cvidmode],al mov [cvidmode],al
mov [cfgcvidmode],al mov [cfgcvidmode],al
ret ret
.novideo3
cmp byte[.stringb],'3'
jne .novideo
mov al,[.stringb+1]
sub al,18
mov [cvidmode],al
mov [cfgcvidmode],al
ret
.getexecute .getexecute
cmp dword[.strlenb],0 cmp dword[.strlenb],0