From d4398adab635f10a55717e2472ecf651b1edab3c Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Sun, 1 Jan 2012 12:32:53 -0500 Subject: vgabios: Use vesa style memory model flags in stdvga code. Replace the custom flags with the flags defined in the VBE spec. Signed-off-by: Kevin O'Connor --- vgasrc/stdvga.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'vgasrc/stdvga.c') diff --git a/vgasrc/stdvga.c b/vgasrc/stdvga.c index c7331e45..e90d48f0 100644 --- a/vgasrc/stdvga.c +++ b/vgasrc/stdvga.c @@ -527,11 +527,10 @@ static void clear_screen(struct vgamode_s *vmode_g) { switch (GET_GLOBAL(vmode_g->memmodel)) { - case CTEXT: - case MTEXT: + case MM_TEXT: memset16_far(GET_GLOBAL(vmode_g->sstart), 0, 0x0720, 32*1024); break; - case CGA: + case MM_CGA: memset16_far(GET_GLOBAL(vmode_g->sstart), 0, 0x0000, 32*1024); break; default: @@ -627,7 +626,7 @@ stdvga_set_mode(int mode, int flags) // Write the fonts in memory u8 memmodel = GET_GLOBAL(vmode_g->memmodel); - if (memmodel & TEXT) + if (memmodel == MM_TEXT) stdvga_load_font(get_global_seg(), vgafont16, 0x100, 0, 0, 16); // Setup BDA variables -- cgit