[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen-unstable] ioemu: Fix non-openGL resize
# HG changeset patch # User Keir Fraser <keir.fraser@xxxxxxxxxx> # Date 1206010037 0 # Node ID 5c940fbeb82ca3dbee1e6d497363d557dbfa1a01 # Parent 27df0fe73b319f23e444c90e361c517baa1a940b ioemu: Fix non-openGL resize We can not resize when OpenGL is not enabled. Signed-off-by: Samuel Thibault <samuel.thibault@xxxxxxxxxxxxx> --- tools/ioemu/sdl.c | 10 ++++++---- 1 files changed, 6 insertions(+), 4 deletions(-) diff -r 27df0fe73b31 -r 5c940fbeb82c tools/ioemu/sdl.c --- a/tools/ioemu/sdl.c Thu Mar 20 10:46:52 2008 +0000 +++ b/tools/ioemu/sdl.c Thu Mar 20 10:47:17 2008 +0000 @@ -664,10 +664,12 @@ static void sdl_refresh(DisplayState *ds #ifdef CONFIG_OPENGL case SDL_VIDEORESIZE: { - SDL_ResizeEvent *rev = &ev->resize; - screen = SDL_SetVideoMode(rev->w, rev->h, 0, SDL_OPENGL|SDL_RESIZABLE); - opengl_setdata(ds, ds->data); - opengl_update(ds, 0, 0, ds->width, ds->height); + if (ds->shared_buf && opengl_enabled) { + SDL_ResizeEvent *rev = &ev->resize; + screen = SDL_SetVideoMode(rev->w, rev->h, 0, SDL_OPENGL|SDL_RESIZABLE); + opengl_setdata(ds, ds->data); + opengl_update(ds, 0, 0, ds->width, ds->height); + } break; } #endif _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |