From: Herve Poussineau <hpoussin@reactos.org>
To: qemu-devel@nongnu.org
Cc: Herve Poussineau <hpoussin@reactos.org>
Subject: [Qemu-devel] [PATCH] win32/sdl: Fix toggle full screen
Date: Sun, 24 Jan 2010 21:18:36 +0000 [thread overview]
Message-ID: <1264367916-2716-1-git-send-email-hpoussin@reactos.org> (raw)
Toggle full screen on Win32/SDL 1.2.13 was broken by commit
c18a2c360e3100bbd71162cf922dcd8c429a8b71. Re-add the call to
do_sdl_resize() which was removed in this revision
Signed-off-by: Herve Poussineau <hpoussin@reactos.org>
---
sdl.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/sdl.c b/sdl.c
index 034440f..7912c91 100644
--- a/sdl.c
+++ b/sdl.c
@@ -525,6 +525,7 @@ static void sdl_send_mouse_event(int dx, int dy, int dz, int x, int y, int state
static void toggle_full_screen(DisplayState *ds)
{
gui_fullscreen = !gui_fullscreen;
+ do_sdl_resize(real_screen->w, real_screen->h, real_screen->format->BitsPerPixel);
if (gui_fullscreen) {
scaling_active = 0;
gui_saved_grab = gui_grab;
--
1.6.0.2.GIT
next reply other threads:[~2010-01-24 21:18 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-01-24 21:18 Herve Poussineau [this message]
2010-01-27 0:06 ` [Qemu-devel] [PATCH] win32/sdl: Fix toggle full screen 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=1264367916-2716-1-git-send-email-hpoussin@reactos.org \
--to=hpoussin@reactos.org \
--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.