From: malc <av1474@comtv.ru>
To: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] r6349 broke Commander Keen 4 ;-(
Date: Tue, 17 Mar 2009 02:08:13 +0300 (MSK) [thread overview]
Message-ID: <Pine.LNX.4.64.0903170206040.4644@linmac.oyster.ru> (raw)
In-Reply-To: <49BECB48.2040107@bttr-software.de>
On Mon, 16 Mar 2009, Robert Riebisch wrote:
> Hi!
>
> When running Commander Keen 4 (<ftp://ftp.3drealms.com/share/4keen.zip>)
> in DOS only the left half of the VGA screen is shown on the SDL interface.
>
> By doing lots of builds I narrowed the problem down to
> <http://svn.savannah.gnu.org/viewvc?view=rev&root=qemu&revision=6349> by
> Stefano Stabellini.
6349 is indeed what broke stuff, the code was moved (why?) and uses
disp_width that could be modified later..
diff --git a/hw/vga.c b/hw/vga.c
index e3d2446..eeb77f1 100644
--- a/hw/vga.c
+++ b/hw/vga.c
@@ -1619,6 +1619,16 @@ static void vga_draw_graphic(VGAState *s, int full_update)
s->double_scan = double_scan;
}
+ if (shift_control == 0) {
+ if (s->sr[0x01] & 8) {
+ disp_width <<= 1;
+ }
+ } else if (shift_control == 1) {
+ if (s->sr[0x01] & 8) {
+ disp_width <<= 1;
+ }
+ }
+
depth = s->get_bpp(s);
if (s->line_offset != s->last_line_offset ||
disp_width != s->last_width ||
@@ -1660,7 +1670,6 @@ static void vga_draw_graphic(VGAState *s, int full_update)
full_update |= update_palette16(s);
if (s->sr[0x01] & 8) {
v = VGA_DRAW_LINE4D2;
- disp_width <<= 1;
} else {
v = VGA_DRAW_LINE4;
}
@@ -1669,7 +1678,6 @@ static void vga_draw_graphic(VGAState *s, int full_update)
full_update |= update_palette16(s);
if (s->sr[0x01] & 8) {
v = VGA_DRAW_LINE2D2;
- disp_width <<= 1;
} else {
v = VGA_DRAW_LINE2;
}
--
mailto:av1474@comtv.ru
next prev parent reply other threads:[~2009-03-16 23:08 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-03-16 21:57 [Qemu-devel] r6349 broke Commander Keen 4 ;-( Robert Riebisch
2009-03-16 22:33 ` Rick Vernam
2009-03-16 23:08 ` malc [this message]
2009-03-17 10:23 ` Stefano Stabellini
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=Pine.LNX.4.64.0903170206040.4644@linmac.oyster.ru \
--to=av1474@comtv.ru \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).