diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2012-01-01 12:32:53 -0500 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2012-01-14 12:59:46 -0500 |
commit | d4398adab635f10a55717e2472ecf651b1edab3c (patch) | |
tree | 4c8ee4f0a58ef9d5d063623154470966d3c71a79 /vgasrc/stdvga.c | |
parent | 88e745e11242bbe13fa4f22093029ccf04087472 (diff) | |
download | seabios-d4398adab635f10a55717e2472ecf651b1edab3c.tar.gz |
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 <kevin@koconnor.net>
Diffstat (limited to 'vgasrc/stdvga.c')
-rw-r--r-- | vgasrc/stdvga.c | 7 |
1 files changed, 3 insertions, 4 deletions
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 |