summaryrefslogtreecommitdiff
path: root/vgasrc
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2017-08-29 14:38:19 -0400
committerKevin O'Connor <kevin@koconnor.net>2017-08-29 14:38:19 -0400
commitef5fdc99b771349264b4ba0aac1c654c8789386f (patch)
tree4dc8efc29a93b1de2a20f358b0a1ee638bf27585 /vgasrc
parentb404a5f417cbe5593f89c79954569b0e245fb80c (diff)
downloadqemu-seabios-ef5fdc99b771349264b4ba0aac1c654c8789386f.tar.gz
vga: Fix bug in stdvga_get_linesize()
Add required GET_GLOBAL() macro to vmode_g access. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'vgasrc')
-rw-r--r--vgasrc/stdvga.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/vgasrc/stdvga.c b/vgasrc/stdvga.c
index 0e24297..0e01275 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);
}
/****************************************************************