added basic support for vidmode 0x7
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@984
This commit is contained in:
parent
34c95efc05
commit
b0906a8ed9
2 changed files with 5 additions and 3 deletions
|
@ -101,7 +101,8 @@ void VGA_DrawGFX256U_Fast(Bit8u * bitdata,Bitu next_line) {
|
|||
}
|
||||
|
||||
void VGA_DrawTEXT(Bit8u * bitdata,Bitu pitch) {
|
||||
Bit8u * reader=HostMake(0xB800,0);
|
||||
|
||||
Bit8u * reader=HostMake((vga.gfx.miscellaneous & 0x4 ?0xB800:0xB000),0);
|
||||
Bit8u * draw_start=bitdata;
|
||||
/* Todo Blinking and high intensity colors */
|
||||
for (Bitu cy=0;cy<(vga.draw.height/16);cy++) {
|
||||
|
|
|
@ -242,9 +242,10 @@ INLINE static void WriteChar(Bit16u col,Bit16u row,Bit8u page,Bit8u chr,Bit8u at
|
|||
// Compute the address
|
||||
Bit16u address=SCREEN_MEM_START(curmode->twidth,curmode->theight,page)+(col+row*curmode->twidth)*2;
|
||||
// Write the char
|
||||
real_writeb(0xb800,address,chr);
|
||||
Bit16u segment = curmode->sstart;
|
||||
real_writeb(segment,address,chr);
|
||||
if (useattr) {
|
||||
real_writeb(0xb800,address+1,attr);
|
||||
real_writeb(segment,address+1,attr);
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
|
Loading…
Add table
Reference in a new issue