From 7c20b4a374d0016e3fce005690fb428354a56621 Mon Sep 17 00:00:00 2001 From: Gerd Hoffmann Date: Tue, 13 Nov 2012 14:51:41 +0100 Subject: console: fix displaychangelisteners interface Split callbacks into separate Ops struct. Pass DisplayChangeListener pointer as first argument to all callbacks. Uninline a bunch of display functions and move them from console.h to console.c Signed-off-by: Gerd Hoffmann --- vl.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'vl.c') diff --git a/vl.c b/vl.c index a621aec0a4..ce51e65368 100644 --- a/vl.c +++ b/vl.c @@ -1639,13 +1639,13 @@ void gui_setup_refresh(DisplayState *ds) bool have_text = false; QLIST_FOREACH(dcl, &ds->listeners, next) { - if (dcl->dpy_refresh != NULL) { + if (dcl->ops->dpy_refresh != NULL) { need_timer = true; } - if (dcl->dpy_gfx_update != NULL) { + if (dcl->ops->dpy_gfx_update != NULL) { have_gfx = true; } - if (dcl->dpy_text_update != NULL) { + if (dcl->ops->dpy_text_update != NULL) { have_text = true; } } -- cgit 1.4.1