All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ioemu: Fix non-openGL resize
@ 2008-03-19 18:17 Samuel Thibault
  0 siblings, 0 replies; only message in thread
From: Samuel Thibault @ 2008-03-19 18:17 UTC (permalink / raw)
  To: xen-devel

ioemu: Fix non-openGL resize
We can not resize when OpenGL is not enabled.

Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>

diff -r b4f6d626c41f tools/ioemu/sdl.c
--- a/tools/ioemu/sdl.c	Wed Mar 19 17:10:26 2008 +0000
+++ b/tools/ioemu/sdl.c	Wed Mar 19 18:13:32 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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2008-03-19 18:17 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-03-19 18:17 [PATCH] ioemu: Fix non-openGL resize Samuel Thibault

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.