Message ID | 1461658058-1672-1-git-send-email-ppandit@redhat.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
diff --git a/hw/display/vga.c b/hw/display/vga.c index 9f68394..1a66291 100644 --- a/hw/display/vga.c +++ b/hw/display/vga.c @@ -1478,6 +1478,9 @@ static void vga_draw_graphic(VGACommonState *s, int full_update) disp_width <<= 1; } } + if (disp_width > VBE_DISPI_MAX_XRES) { + disp_width = VBE_DISPI_MAX_XRES; + } depth = s->get_bpp(s);