mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-06 09:13:55 -06:00
ui/sdl: switch to new show-cursor option
Use DisplayOpts settings instead of cursor_hide global variable. Also make "-display sdl,show-cursor=on" work. Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
parent
09aa82ee7a
commit
86a088e624
2 changed files with 18 additions and 8 deletions
10
vl.c
10
vl.c
|
@ -1931,6 +1931,16 @@ static void parse_display(const char *p)
|
|||
} else {
|
||||
goto invalid_sdl_args;
|
||||
}
|
||||
} else if (strstart(opts, ",show-cursor=", &nextopt)) {
|
||||
opts = nextopt;
|
||||
dpy.has_show_cursor = true;
|
||||
if (strstart(opts, "on", &nextopt)) {
|
||||
dpy.show_cursor = true;
|
||||
} else if (strstart(opts, "off", &nextopt)) {
|
||||
dpy.show_cursor = false;
|
||||
} else {
|
||||
goto invalid_sdl_args;
|
||||
}
|
||||
} else if (strstart(opts, ",gl=", &nextopt)) {
|
||||
opts = nextopt;
|
||||
dpy.has_gl = true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue