From: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
To: "Andreas Färber" <andreas.faerber@web.de>
Cc: "C.W. Betts" <computers57@hotmail.com>,
"qemu-devel@nongnu.org" <qemu-devel@nongnu.org>
Subject: Re: [Qemu-devel] [PATCH] [v2] Update cocoa.m to match new DisplayState code
Date: Mon, 2 Mar 2009 11:33:27 +0000 [thread overview]
Message-ID: <49ABC407.1060309@eu.citrix.com> (raw)
In-Reply-To: <697AA905-E4AA-4B1D-9F35-80887DE5C99F@web.de>
Andreas Färber wrote:
> Acked-by: Andreas Faerber <andreas.faerber@web.de>
>
> The patch fixes compilation, and I have tested the following guests on
> ppc host:
> Debian/sparc32 (OpenBIOS and penguin feet are yellow)
> Haiku/x86 @ 16bit, 15bit, 8bit (blue background, everything looks
> normal)
>
> This patch implicitly adds a new feature, it centers the window on
> size change ("[normalWindow center];"). Previously the window would
> extend below the desktop bounds after the BIOS/OpenBIOS screen. Maybe
> that should be split out from the DisplayState changes?
>
> This patch probably needs a Signed-off-by from Stefano since it is
> likely based upon his draft patch from Dec 19.
>
> There was an additional patch from Stefano in this thread that I have
> not yet tested. It was supposed to fix some Windows guests as a last
> resort (disabling 16-bit optimizations due to lacking support in
> Cocoa), but nobody replied to it yet apparently.
>
> I haven't checked in-depth in which way C. W. Bett's diff is related
> to these two. It does seem to contain an additional output typo fix
> not in here. Could you post that as a separate patch?
>
The problem with this patch is that it won't handle correctly the
following case: host and guest x86, host is a MacOS host, guest is a
Windows guest with 16bpp resolution. The cause of the problem is that
Windows uses 565 RGB for 16bpp while MacOS seems to be unable not only
to render but even to convert this resolution into another.
Due to the lack of alternatives I suggest to introduce the following
hack to workaround the problem:
---
diff --git a/hw/vga.c b/hw/vga.c
index 2084ff4..b742c78 100644
--- a/hw/vga.c
+++ b/hw/vga.c
@@ -1621,7 +1621,7 @@ static void vga_draw_graphic(VGAState *s, int full_update)
disp_width != s->last_width ||
height != s->last_height ||
s->last_depth != depth) {
-#if defined(WORDS_BIGENDIAN) == defined(TARGET_WORDS_BIGENDIAN)
+#if defined(WORDS_BIGENDIAN) == defined(TARGET_WORDS_BIGENDIAN) && !defined(CONFIG_COCOA)
if (depth == 16 || depth == 32) {
#else
if (depth == 32) {
---
Apart from this issue the cocoa patch is fine, you can add my signed off
line to it.
next prev parent reply other threads:[~2009-03-02 11:40 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-01-25 8:23 [Qemu-devel] [PATCH] [v2] Update cocoa.m to match new DisplayState code Samuel Benson
[not found] ` <2DDD067A-BDFD-4A05-9022-2FF16F4075C2@hotmail.com>
2009-01-25 22:15 ` C.W. Betts
2009-01-25 22:28 ` Samuel Benson
2009-01-25 22:30 ` Anthony Liguori
2009-01-26 11:05 ` Stefano Stabellini
2009-01-27 3:29 ` Samuel Benson
2009-01-27 10:47 ` Stefano Stabellini
2009-01-27 21:35 ` Samuel Benson
2009-01-28 10:47 ` Stefano Stabellini
2009-01-26 18:26 ` Stefano Stabellini
2009-01-26 18:26 ` Stefano Stabellini
2009-02-28 15:09 ` Andreas Färber
2009-03-02 11:33 ` Stefano Stabellini [this message]
2009-03-03 17:15 ` Anthony Liguori
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=49ABC407.1060309@eu.citrix.com \
--to=stefano.stabellini@eu.citrix.com \
--cc=andreas.faerber@web.de \
--cc=computers57@hotmail.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 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).