mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-17 15:12:07 -06:00
console: init displaychangelisteners on register
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
This commit is contained in:
parent
a93a4a226a
commit
e250d949fe
2 changed files with 3 additions and 1 deletions
|
@ -241,6 +241,9 @@ static inline void register_displaychangelistener(DisplayState *ds, DisplayChang
|
|||
{
|
||||
QLIST_INSERT_HEAD(&ds->listeners, dcl, next);
|
||||
gui_setup_refresh(ds);
|
||||
if (dcl->dpy_gfx_resize) {
|
||||
dcl->dpy_gfx_resize(ds);
|
||||
}
|
||||
}
|
||||
|
||||
static inline void unregister_displaychangelistener(DisplayState *ds,
|
||||
|
|
1
vl.c
1
vl.c
|
@ -3876,7 +3876,6 @@ int main(int argc, char **argv, char **envp)
|
|||
#endif
|
||||
|
||||
/* display setup */
|
||||
dpy_gfx_resize(ds);
|
||||
text_consoles_set_display(ds);
|
||||
|
||||
if (foreach_device_config(DEV_GDB, gdbserver_start) < 0) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue