Re: [Qemu-devel] [Bug 1658634] [PATCH] console: fix console resize

2017-01-24 Thread Laszlo Ersek (Red Hat)
On 01/24/17 11:37, elmarco wrote: > Hi > > On Tue, Jan 24, 2017 at 2:31 PM Gerd Hoffmann <1658...@bugs.launchpad.net> > wrote: > >> Only skip surface reallocation in case the old surface was created using >> qemu_alloc_display (via qemu_create_displaysurface) too, otherwise we >> might end up wit

Re: [Qemu-devel] [Bug 1658634] [PATCH] console: fix console resize

2017-01-24 Thread Gerd Hoffmann
> > -if (s->surface && > > +if (s->surface && (surface->flags & QEMU_ALLOCATED_FLAG) && > > pixman_image_get_width(s->surface->image) == width && > > pixman_image_get_height(s->surface->image) == height) { > > return; > > > > You are missing the 's->' ! Good cat

Re: [Qemu-devel] [Bug 1658634] [PATCH] console: fix console resize

2017-01-24 Thread elmarco
Hi On Tue, Jan 24, 2017 at 2:31 PM Gerd Hoffmann <1658...@bugs.launchpad.net> wrote: > Only skip surface reallocation in case the old surface was created using > qemu_alloc_display (via qemu_create_displaysurface) too, otherwise we > might end up with a DisplaySurface with the wrong backing stora