From: Anthony Liguori <anthony@codemonkey.ws>
To: Michael Tokarev <mjt@tls.msk.ru>
Cc: qemu-devel <qemu-devel@nongnu.org>
Subject: Re: [Qemu-devel] SDL fullscreen window dislikes being resized past the screen size
Date: Tue, 25 May 2010 11:02:11 -0500 [thread overview]
Message-ID: <4BFBF483.1040803@codemonkey.ws> (raw)
In-Reply-To: <4BFBF292.4030000@msgid.tls.msk.ru>
On 05/25/2010 10:53 AM, Michael Tokarev wrote:
> Initially it were a bugreport on #kvm IRC, someone
> asked why his kvm exits when entering fullscreen mode,
> saying the famous
> "Could not open SDL display"
> and nothing more.
>
> I added a bit of debug output and here's what I see:
>
> ...
> resizing to 1440x900 0 0x115
> resizing to 1440x900 32 0x80000115
> Could not open SDL display for 1440x900, bpp=32, flags=0x80000115
>
> flag=0x80000000 means fullscreen. My screen size is
> 1280x1024, -- 1440 is more than 1280.
>
> It works just fine if I choose resolution less or equal
> to my screen size.
Depending on how SDL is configured, it uses DGA or some other relic to
actually implement full screen mode. You cannot get a DGA screen that's
larger than the physical monitor since it's often backed by video
memory. SDL isn't smart enough to degrade into a scaled mode either.
Honestly, SDL full screen mode is a bad idea. We offer no indication
that the guest is actually running which is potentially very
confusing/dangerous. We need a better backend to really implement a
functioning full screen mode.
Regards,
Anthony Liguori
> And it works just fine (as seen in the example output
> above) that it works with larger resolutions but not
> fullscreen (in that case SDL window will be scaled to
> fit the actual desktop size).
>
> It looks to me like an incorrect usage or assumptions
> about SDL window, or maybe SDL bug. Mine is
> libsdl1.2debian 1.2.13-2.
>
> And the error message is in usual qemu style - not at
> all useful :) But it's at least better than pure
> exit without any messages at all, like was in hugetlbfs
> code ;)
>
> Thanks!
>
> /mjt
>
prev parent reply other threads:[~2010-05-25 16:02 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-05-25 15:53 [Qemu-devel] SDL fullscreen window dislikes being resized past the screen size Michael Tokarev
2010-05-25 16:02 ` Anthony Liguori [this message]
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=4BFBF483.1040803@codemonkey.ws \
--to=anthony@codemonkey.ws \
--cc=mjt@tls.msk.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 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.