X-Git-Url: http://wien.tomnetworks.com/gitweb/?p=seabios.git;a=blobdiff_plain;f=vgasrc%2Fvbe.c;h=14efece6087f6675720318c11d9f61059a500db8;hp=ee80e978b846c37fb2d47df31f32a415612b938d;hb=e19a68f5acf441eb0c00cbd38f74e46ad4a288f3;hpb=643290fb1f9bca93084dd485c18397f2f7d3fdd7 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);