projects
/
dosdemo
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
92bc7be
)
fixed div/0
author
John Tsiombikas
<nuclear@member.fsf.org>
Fri, 6 Dec 2019 10:33:19 +0000
(12:33 +0200)
committer
John Tsiombikas
<nuclear@member.fsf.org>
Fri, 6 Dec 2019 10:33:19 +0000
(12:33 +0200)
src/dos/vbe.c
patch
|
blob
|
history
diff --git
a/src/dos/vbe.c
b/src/dos/vbe.c
index
f4fabdf
..
fd894fe
100644
(file)
--- a/
src/dos/vbe.c
+++ b/
src/dos/vbe.c
@@
-222,6
+222,8
@@
int vbe_setmode(uint16_t mode)
if((regs.eax & 0xffff) != 0x4f) {
return -1;
}
if((regs.eax & 0xffff) != 0x4f) {
return -1;
}
+
+ cur_pitch = vbe_getpitch();
return 0;
}
return 0;
}
@@
-250,6
+252,8
@@
int vbe_setmode_crtc(uint16_t mode, struct vbe_crtc_info *crtc)
if((regs.eax & 0xffff) != 0x4f) {
return -1;
}
if((regs.eax & 0xffff) != 0x4f) {
return -1;
}
+
+ cur_pitch = vbe_getpitch();
return 0;
}
return 0;
}
@@
-378,6
+382,7
@@
int vbe_setscanlen(int len_pix)
return -1;
}
return -1;
}
+ cur_pitch = vbe_getpitch();
return regs.ecx;
}
return regs.ecx;
}
@@
-432,8
+437,8
@@
enum {
SDISP_GET = 0x01,
SDISP_ALTSET = 0x02,
SDISP_SET_STEREO = 0x03,
SDISP_GET = 0x01,
SDISP_ALTSET = 0x02,
SDISP_SET_STEREO = 0x03,
- SDISP_GETSCHED = 0x04,
- SDISP_STEREO_ON = 0x05,
+ SDISP_GETSCHED = 0x04,
+ SDISP_STEREO_ON = 0x05,
SDISP_STEREO_OFF = 0x06,
SDISP_SET_VBLANK = 0x80,
SDISP_ALTSET_VBLANK = 0x82,
SDISP_STEREO_OFF = 0x06,
SDISP_SET_VBLANK = 0x80,
SDISP_ALTSET_VBLANK = 0x82,