]> xenbits.xensource.com Git - seabios.git/commitdiff
vga: Fix bug in stdvga_get_linesize()
authorKevin O'Connor <kevin@koconnor.net>
Tue, 29 Aug 2017 18:38:19 +0000 (14:38 -0400)
committerKevin O'Connor <kevin@koconnor.net>
Tue, 29 Aug 2017 18:38:19 +0000 (14:38 -0400)
Add required GET_GLOBAL() macro to vmode_g access.

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
vgasrc/stdvga.c

index 0e24297e4d8b5e64f1f4be450fc456f66e650720..0e01275c185e582d85fdf24b71ace5f1bac1f510 100644 (file)
@@ -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);
 }
 
 /****************************************************************