From: Andreas Winkelbauer <andreas.winkelbauer@gmx.at>
To: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH] don't die if switching to fullscreen mode fails
Date: Wed, 27 Feb 2008 02:19:47 +0100 [thread overview]
Message-ID: <47C4BAB3.7050302@gmx.at> (raw)
hi,
> Wow. This patch is messy, if I may say so. There must be a more
> elegant way to do this, especially given the fact that you remove
> atexit(sdl_cleanup)s without explanation.
well, the diff output is messy, because I added sdl_resize2() above
sdl_resize() to avoid adding a forward declaration.
the patch itself might be messy as well, but that depends on your point
of view. I don't think it is too messy. I did it that way because I
wanted the patch to be as less invasively as possible. I did not change
any existing function prototypes and all the changes are restricted to
one source file.
just as an example: changing the function prototype of sdl_resize()
would lead to much more changes at other places as well to make things
consistent again. I don't think this would make the patch less messy.
I didn't remove the atexit() call, it is just moved some lines upwards
(look carefully) because now there is a check if the initial resize to
640x400 fails. If it fails we call exit() and that means the call to
atexit() must be done before a possible call to exit().
However, I agree with you that there should exist another solution.
Does qemu have access to the maximum resolution of the host display?
cheers,
Andi
next reply other threads:[~2008-02-27 1:19 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-02-27 1:19 Andreas Winkelbauer [this message]
-- strict thread matches above, loose matches on Subject: below --
2008-02-27 2:02 [Qemu-devel] [PATCH] don't die if switching to fullscreen mode fails Andreas Winkelbauer
2008-02-26 12:48 Andreas Winkelbauer
2008-02-26 12:53 ` Johannes Schindelin
2008-02-26 13:23 ` Markus Hitter
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=47C4BAB3.7050302@gmx.at \
--to=andreas.winkelbauer@gmx.at \
--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.