mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-06 01:03:55 -06:00
console: displaystate init revamp
We have only one DisplayState, so there is no need for the "next" linking, rip it. Also consolidate all displaystate initialization into init_displaystate(). This function is called by vl.c after creating the devices (and thus all QemuConsoles) and before initializing DisplayChangeListensers (aka gtk/sdl/vnc/spice ui). Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
This commit is contained in:
parent
437fe1061b
commit
64840c66b7
3 changed files with 39 additions and 51 deletions
6
vl.c
6
vl.c
|
@ -4331,8 +4331,7 @@ int main(int argc, char **argv, char **envp)
|
|||
|
||||
net_check_clients();
|
||||
|
||||
/* just use the first displaystate for the moment */
|
||||
ds = get_displaystate();
|
||||
ds = init_displaystate();
|
||||
|
||||
/* init local displays */
|
||||
switch (display_type) {
|
||||
|
@ -4388,9 +4387,6 @@ int main(int argc, char **argv, char **envp)
|
|||
}
|
||||
#endif
|
||||
|
||||
/* display setup */
|
||||
text_consoles_set_display(ds);
|
||||
|
||||
if (foreach_device_config(DEV_GDB, gdbserver_start) < 0) {
|
||||
exit(1);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue