aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--vgasrc/stdvga.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/vgasrc/stdvga.c b/vgasrc/stdvga.c
index 0e24297e..0e01275c 100644
--- a/vgasrc/stdvga.c
+++ b/vgasrc/stdvga.c
@@ -324,7 +324,7 @@ stdvga_set_dacformat(struct vgamode_s *vmode_g, int val)
int
stdvga_get_linesize(struct vgamode_s *vmode_g)
{
- return DIV_ROUND_UP(vmode_g->width * vga_bpp(vmode_g), 8);
+ return DIV_ROUND_UP(GET_GLOBAL(vmode_g->width) * vga_bpp(vmode_g), 8);
}
/****************************************************************