aboutsummaryrefslogtreecommitdiff
path: root/vgasrc/vbe.c
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2012-01-14 14:52:01 -0500
committerKevin O'Connor <kevin@koconnor.net>2012-01-14 17:19:58 -0500
commite19a68f5acf441eb0c00cbd38f74e46ad4a288f3 (patch)
tree7ce2bc1484886fd83dd43185cb9dbc08a82c217c /vgasrc/vbe.c
parent643290fb1f9bca93084dd485c18397f2f7d3fdd7 (diff)
downloadseabios-e19a68f5acf441eb0c00cbd38f74e46ad4a288f3.zip
seabios-e19a68f5acf441eb0c00cbd38f74e46ad4a288f3.tar.gz
seabios-e19a68f5acf441eb0c00cbd38f74e46ad4a288f3.tar.bz2
vgabios: Make cirrus line lengths standard.
Only two modes don't match their expected line length. One looks like a bug (it has a virtual line length of 1280 for a screen of 1600 bytes) and one looks like an optimization (2048 vs 1920). Change the mode line lengths to exactly match the expected line lengths so that the VBE code is correct. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'vgasrc/vbe.c')
-rw-r--r--vgasrc/vbe.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/vgasrc/vbe.c b/vgasrc/vbe.c
index ee80e97..14efece 100644
--- a/vgasrc/vbe.c
+++ b/vgasrc/vbe.c
@@ -106,7 +106,7 @@ vbe_104f01(struct bregs *regs)
SET_FARVAR(seg, info->win_func_ptr.segoff, 0x0);
int width = GET_GLOBAL(vmode_g->width);
int height = GET_GLOBAL(vmode_g->height);
- int linesize = width * DIV_ROUND_UP(depth, 8); // XXX - not always true
+ int linesize = width * DIV_ROUND_UP(depth, 8);
SET_FARVAR(seg, info->bytes_per_scanline, linesize);
SET_FARVAR(seg, info->xres, width);
SET_FARVAR(seg, info->yres, height);