All of lore.kernel.org
 help / color / mirror / Atom feed
From: John Baboval <john.baboval@virtualcomputer.com>
To: qemu-devel@nongnu.org
Subject: [Qemu-devel] [PATCH 1/2] Allow 1366x768 as a valid VGA resolution
Date: Fri, 28 Oct 2011 15:24:25 -0400	[thread overview]
Message-ID: <4EAB0169.8090408@virtualcomputer.com> (raw)

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 <john.baboval@virtualcomputer.com>
---
  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

             reply	other threads:[~2011-10-28 19:24 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-10-28 19:24 John Baboval [this message]
2011-11-01  8:58 ` [Qemu-devel] [PATCH 1/2] Allow 1366x768 as a valid VGA resolution Gerd Hoffmann
2011-11-01 13:39   ` John Baboval
2011-11-01 16:57     ` Gerd Hoffmann
2011-11-03 15:03       ` John Baboval

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4EAB0169.8090408@virtualcomputer.com \
    --to=john.baboval@virtualcomputer.com \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.