]> git.ipfire.org Git - thirdparty/qemu.git/blobdiff - vl.c
ui/sdl: switch to new show-cursor option
[thirdparty/qemu.git] / vl.c
diff --git a/vl.c b/vl.c
index 5419b3d68200ab05a1dff0b8eaeaed04c0764161..0a13cf2b172481d73d4c8c086c05f84458ef0ce9 100644 (file)
--- a/vl.c
+++ b/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;