]> git.proxmox.com Git - mirror_qemu.git/commit - vl.c
Unbreak -no-quit for GTK, validate SDL options
authorPeter Wu <lekensteyn@gmail.com>
Tue, 11 Jun 2013 08:55:08 +0000 (10:55 +0200)
committerMichael Tokarev <mjt@tls.msk.ru>
Tue, 11 Jun 2013 19:45:44 +0000 (23:45 +0400)
commit047d4e151dd462915786a4fddc12f774d0028af5
tree0e0c608a7c40dacff19da5508b5a82bf9b2abe67
parent787ba4f026f54d4fc7787078b896f9c5432c9a9b
Unbreak -no-quit for GTK, validate SDL options

Certain options (-no-frame, -alt-grab, -ctrl-grab) only make sense with SDL.
When compiling without SDL, these options (and -no-quit) print an error message
and exit qemu.

In case QEMU is compiled with SDL support, the three aforementioned options
still do not make sense with other display types. This patch addresses that
issue by printing a warning. I have chosen not to exit QEMU afterwards because
having the option is not harmful and before this patch it would be ignored
anyway.

By delaying the sanity check from compile-time with some ifdefs to run-time,
-no-quit is now also properly supported when compiling without SDL.

Signed-off-by: Peter Wu <lekensteyn@gmail.com>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
vl.c