From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:41431) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RJs2X-0002Wy-MZ for qemu-devel@nongnu.org; Fri, 28 Oct 2011 15:24:30 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RJs2W-00014L-NE for qemu-devel@nongnu.org; Fri, 28 Oct 2011 15:24:29 -0400 Received: from server514c.exghost.com ([72.32.253.76]:3098 helo=server514.appriver.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RJs2W-00014A-Jy for qemu-devel@nongnu.org; Fri, 28 Oct 2011 15:24:28 -0400 Received: from [72.32.253.65] (HELO FE03.exg4.exghost.com) by server514.appriver.com (CommuniGate Pro SMTP 5.4.1) with ESMTP id 239864568 for qemu-devel@nongnu.org; Fri, 28 Oct 2011 14:24:27 -0500 Message-ID: <4EAB0169.8090408@virtualcomputer.com> Date: Fri, 28 Oct 2011 15:24:25 -0400 From: John Baboval MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: [Qemu-devel] [PATCH 1/2] Allow 1366x768 as a valid VGA resolution List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org 760p TV panels have a 1366x768 resolution, and have been popular recently as low-cost monitors. The 1366 resolution doesn't pass the (xres & 7) == 0 test. Signed-off-by: John V. Baboval --- hw/vga.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/hw/vga.c b/hw/vga.c index 8003eda..f12a371 100644 --- a/hw/vga.c +++ b/hw/vga.c @@ -680,7 +680,7 @@ static void vbe_ioport_write_data(void *opaque, uint32_t addr, uint32_t val) } break; case VBE_DISPI_INDEX_XRES: - if ((val <= vs.max_xres) && ((val & 7) == 0)) { + if (val <= vs.max_xres) { s->vbe_regs[s->vbe_index] = val; } break; -- 1.7.4.1