mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-06 01:03:55 -06:00
curses: use DisplayOptions
Switch curses ui to use qapi DisplayOptions for configuration. Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com> Message-id: 20180202111022.19269-9-kraxel@redhat.com Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
This commit is contained in:
parent
0d2dd9f009
commit
14f130fad8
4 changed files with 9 additions and 6 deletions
4
vl.c
4
vl.c
|
@ -2186,6 +2186,7 @@ static LegacyDisplayType select_display(const char *p)
|
|||
} else if (strstart(p, "curses", &opts)) {
|
||||
#ifdef CONFIG_CURSES
|
||||
display = DT_CURSES;
|
||||
dpy.type = DISPLAY_TYPE_CURSES;
|
||||
#else
|
||||
error_report("curses support is disabled");
|
||||
exit(1);
|
||||
|
@ -3268,6 +3269,7 @@ int main(int argc, char **argv, char **envp)
|
|||
case QEMU_OPTION_curses:
|
||||
#ifdef CONFIG_CURSES
|
||||
display_type = DT_CURSES;
|
||||
dpy.type = DISPLAY_TYPE_CURSES;
|
||||
#else
|
||||
error_report("curses support is disabled");
|
||||
exit(1);
|
||||
|
@ -4697,7 +4699,7 @@ int main(int argc, char **argv, char **envp)
|
|||
/* init local displays */
|
||||
switch (display_type) {
|
||||
case DT_CURSES:
|
||||
curses_display_init(ds, full_screen);
|
||||
curses_display_init(ds, &dpy);
|
||||
break;
|
||||
case DT_SDL:
|
||||
sdl_display_init(ds, &dpy);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue