From: Andreas Winkelbauer <[EMAIL PROTECTED]> this is useful for high resolutions.
Signed-off-by: Avi Kivity <[EMAIL PROTECTED]> diff --git a/qemu/hw/pc.h b/qemu/hw/pc.h index f640395..d109569 100644 --- a/qemu/hw/pc.h +++ b/qemu/hw/pc.h @@ -108,9 +108,9 @@ int piix4_init(PCIBus *bus, int devfn); /* vga.c */ #ifndef TARGET_SPARC -#define VGA_RAM_SIZE (8192 * 1024) +#define VGA_RAM_SIZE (16 * 1024 * 1024) #else -#define VGA_RAM_SIZE (9 * 1024 * 1024) +#define VGA_RAM_SIZE (17 * 1024 * 1024) #endif int isa_vga_init(DisplayState *ds, uint8_t *vga_ram_base, diff --git a/qemu/hw/vga.c b/qemu/hw/vga.c index 6392b00..8356061 100644 --- a/qemu/hw/vga.c +++ b/qemu/hw/vga.c @@ -1438,7 +1438,7 @@ static void vga_draw_graphic(VGAState *s, int full_update) long page0, page1, page_min, page_max; vga_draw_line_func *vga_draw_line; /* HACK ALERT */ -#define VGA_BITMAP_SIZE ((8*1024*1024) / 4096 / 8 / sizeof(long)) +#define VGA_BITMAP_SIZE (VGA_RAM_SIZE / 4096 / 8 / sizeof(long)) unsigned long bitmap[VGA_BITMAP_SIZE]; #ifndef TARGET_IA64 int r; diff --git a/qemu/hw/vga_int.h b/qemu/hw/vga_int.h index 980e8a8..3c47e72 100644 --- a/qemu/hw/vga_int.h +++ b/qemu/hw/vga_int.h @@ -30,8 +30,8 @@ /* bochs VBE support */ #define CONFIG_BOCHS_VBE -#define VBE_DISPI_MAX_XRES 1600 -#define VBE_DISPI_MAX_YRES 1200 +#define VBE_DISPI_MAX_XRES 2560 +#define VBE_DISPI_MAX_YRES 1600 #define VBE_DISPI_MAX_BPP 32 #define VBE_DISPI_INDEX_ID 0x0 ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ kvm-commits mailing list kvm-commits@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/kvm-commits