[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 02/13] Align dummy display to fixed-size active cons
From: |
Stefan Hajnoczi |
Subject: |
[Qemu-devel] [PATCH 02/13] Align dummy display to fixed-size active console |
Date: |
Fri, 24 Jun 2011 17:56:38 +0100 |
From: Jan Kiszka <address@hidden>
This fixes e.g. '-vga none -monitor vc:120Cx50C'.
Signed-off-by: Jan Kiszka <address@hidden>
Signed-off-by: Stefan Hajnoczi <address@hidden>
---
console.c | 9 ++++++++-
1 files changed, 8 insertions(+), 1 deletions(-)
diff --git a/console.c b/console.c
index 9c6addf..acd8ca1 100644
--- a/console.c
+++ b/console.c
@@ -1349,8 +1349,15 @@ static struct DisplayAllocator default_allocator = {
static void dumb_display_init(void)
{
DisplayState *ds = qemu_mallocz(sizeof(DisplayState));
+ int width = 640;
+ int height = 480;
+
ds->allocator = &default_allocator;
- ds->surface = qemu_create_displaysurface(ds, 640, 480);
+ if (is_fixedsize_console()) {
+ width = active_console->g_width;
+ height = active_console->g_height;
+ }
+ ds->surface = qemu_create_displaysurface(ds, width, height);
register_displaystate(ds);
}
--
1.7.5.4
- [Qemu-devel] [PULL 00/13] Trivial patches for June 16 to June 24 2011, Stefan Hajnoczi, 2011/06/24
- [Qemu-devel] [PATCH 02/13] Align dummy display to fixed-size active console,
Stefan Hajnoczi <=
- [Qemu-devel] [PATCH 01/13] configure: Don't create symlinks to nonexistent targets, Stefan Hajnoczi, 2011/06/24
- [Qemu-devel] [PATCH 03/13] sheepdog: qemu_bh_new() can't return null pointer, drop check, Stefan Hajnoczi, 2011/06/24
- [Qemu-devel] [PATCH 04/13] Strip trailing '\n' from error_report()'s first argument, Stefan Hajnoczi, 2011/06/24
- [Qemu-devel] [PATCH 05/13] qemu-img: Don't prepend qemu-img to error messages twice., Stefan Hajnoczi, 2011/06/24
- [Qemu-devel] [PATCH 07/13] blockdev: Put space after comma in error message, Stefan Hajnoczi, 2011/06/24
- [Qemu-devel] [PATCH 06/13] Spell "unkown" correctly in error_report() arguments, Stefan Hajnoczi, 2011/06/24
- [Qemu-devel] [PATCH 08/13] MAINTAINERS: Fix typo in email address, Stefan Hajnoczi, 2011/06/24
- [Qemu-devel] [PATCH 09/13] Fix comment typos in hw/armv7m.c, Stefan Hajnoczi, 2011/06/24
- [Qemu-devel] [PATCH 10/13] Do not include compatfd for WIN32, Stefan Hajnoczi, 2011/06/24
- [Qemu-devel] [PATCH 11/13] w32: Remove redundant definitions of PRI*64, Stefan Hajnoczi, 2011/06/24