qemu: fix -full-screen option with SDL2; patch by yours truly.
This commit is contained in:
parent
8d8226464a
commit
9d411e9627
|
@ -0,0 +1,29 @@
|
|||
gui_fullscreen must be set before creating the window.
|
||||
|
||||
-- xtraeme
|
||||
--- ui/sdl2.c.orig 2014-08-01 16:12:17.000000000 +0200
|
||||
+++ ui/sdl2.c 2014-09-03 12:09:44.651872098 +0200
|
||||
@@ -867,6 +867,11 @@ void sdl_display_init(DisplayState *ds,
|
||||
exit(1);
|
||||
}
|
||||
|
||||
+ if (full_screen) {
|
||||
+ gui_fullscreen = 1;
|
||||
+ sdl_grab_start(0);
|
||||
+ }
|
||||
+
|
||||
for (i = 0;; i++) {
|
||||
QemuConsole *con = qemu_console_lookup_by_index(i);
|
||||
if (!con) {
|
||||
@@ -898,11 +903,6 @@ void sdl_display_init(DisplayState *ds,
|
||||
g_free(filename);
|
||||
}
|
||||
|
||||
- if (full_screen) {
|
||||
- gui_fullscreen = 1;
|
||||
- sdl_grab_start(0);
|
||||
- }
|
||||
-
|
||||
mouse_mode_notifier.notify = sdl_mouse_mode_change;
|
||||
qemu_add_mouse_mode_change_notifier(&mouse_mode_notifier);
|
||||
|
|
@ -1,7 +1,7 @@
|
|||
# Template file for 'qemu'
|
||||
pkgname=qemu
|
||||
version=2.1.0
|
||||
revision=4
|
||||
revision=5
|
||||
short_desc="Open Source Processor Emulator"
|
||||
maintainer="Juan RP <xtraeme@gmail.com>"
|
||||
homepage="http://qemu.org"
|
||||
|
|
Loading…
Reference in New Issue