When I use "sdl=1 vnc=0" in hvm guest config file, qemu-dm would exit
due to a de-reference to a NULL pointer. The regression is introduced
by
3793d85f111a0dfe055ca8ac17a9d1881af43240. The attached patch fixes
the issue.
Signed-off-by: Dexuan Cui <dexuan.cui@intel.com>
Acked-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
opengl_enabled = 0;
dcl->dpy_update = sdl_update;
dcl->dpy_setdata = sdl_setdata;
- do_sdl_resize(real_screen->w, real_screen->h, real_screen->format->BitsPerPixel);
+ do_sdl_resize(width, height, bpp);
return;
}
fprintf(stderr, "Could not open SDL display\n");