diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2012-01-21 11:00:11 -0500 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2012-01-21 11:00:11 -0500 |
commit | 0377602ae616e06fd2924dc3af0480cd13b545d4 (patch) | |
tree | c1616b96133ba0808e31d0636d195b7c7bb24cc2 /vgasrc/vbe.c | |
parent | 5e1694c71d43bf6fdf6ba02bc225e2022e6eee70 (diff) | |
download | seabios-0377602ae616e06fd2924dc3af0480cd13b545d4.zip seabios-0377602ae616e06fd2924dc3af0480cd13b545d4.tar.gz seabios-0377602ae616e06fd2924dc3af0480cd13b545d4.tar.bz2 |
vgabios: Set cwidth/cheight/sstart in vgamode_s for cirrus/bochs.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'vgasrc/vbe.c')
-rw-r--r-- | vgasrc/vbe.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/vgasrc/vbe.c b/vgasrc/vbe.c index d7dd8b4..caf856d 100644 --- a/vgasrc/vbe.c +++ b/vgasrc/vbe.c @@ -100,7 +100,7 @@ vbe_104f01(struct bregs *regs) SET_FARVAR(seg, info->winB_attributes, 0); SET_FARVAR(seg, info->win_granularity, GET_GLOBAL(VBE_win_granularity)); SET_FARVAR(seg, info->win_size, 64); /* Bank size 64K */ - SET_FARVAR(seg, info->winA_seg, SEG_GRAPH); + SET_FARVAR(seg, info->winA_seg, GET_GLOBAL(vmode_g->sstart)); SET_FARVAR(seg, info->winB_seg, 0x0); SET_FARVAR(seg, info->win_func_ptr.segoff, 0x0); int width = GET_GLOBAL(vmode_g->width); @@ -109,8 +109,8 @@ vbe_104f01(struct bregs *regs) SET_FARVAR(seg, info->bytes_per_scanline, linesize); SET_FARVAR(seg, info->xres, width); SET_FARVAR(seg, info->yres, height); - SET_FARVAR(seg, info->xcharsize, 8); - SET_FARVAR(seg, info->ycharsize, 16); + SET_FARVAR(seg, info->xcharsize, GET_GLOBAL(vmode_g->cwidth)); + SET_FARVAR(seg, info->ycharsize, GET_GLOBAL(vmode_g->cheight)); if (depth == 4) SET_FARVAR(seg, info->planes, 4); else |