1
0
Fork 0

add video parameter table for low-number video modes (special usage for cga/tandy/pcjr machines), thanks to hal;

some cleanup


Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3452
This commit is contained in:
Sebastian Strohhäcker 2009-07-31 15:36:01 +00:00
parent b560a767ef
commit e744620458
5 changed files with 153 additions and 26 deletions

View file

@ -16,7 +16,7 @@
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
/* $Id: int10.h,v 1.40 2009-07-11 10:25:25 c2woody Exp $ */
/* $Id: int10.h,v 1.41 2009-07-31 15:36:00 c2woody Exp $ */
#include "vga.h"
@ -102,7 +102,7 @@ extern Bit8u int10_font_14[256 * 14];
extern Bit8u int10_font_16[256 * 16];
struct VideoModeBlock {
Bitu mode;
Bit16u mode;
VGAModes type;
Bitu swidth, sheight;
Bitu twidth, theight;
@ -137,9 +137,9 @@ typedef struct {
Bit16u pmode_interface_start;
Bit16u pmode_interface_window;
Bit16u pmode_interface_palette;
Bitu used;
Bit16u used;
} rom;
Bitu vesa_setmode;
Bit16u vesa_setmode;
bool vesa_nolfb;
bool vesa_oldvbe;
} Int10Data;
@ -154,7 +154,7 @@ static Bit8u CURSOR_POS_ROW(Bit8u page) {
return real_readb(BIOSMEM_SEG,BIOSMEM_CURSOR_POS+page*2+1);
}
bool INT10_SetVideoMode(Bitu mode);
bool INT10_SetVideoMode(Bit16u mode);
void INT10_ScrollWindow(Bit8u rul,Bit8u cul,Bit8u rlr,Bit8u clr,Bit8s nlines,Bit8u attr,Bit8u page);
@ -230,4 +230,5 @@ bool INT10_VideoState_Save(Bitu state,RealPt buffer);
bool INT10_VideoState_Restore(Bitu state,RealPt buffer);
/* Video Parameter Tables */
Bitu INT10_SetupVideoParameterTable(PhysPt basepos);
Bit16u INT10_SetupVideoParameterTable(PhysPt basepos);
void INT10_SetupBasicVideoParameterTable(void);