[gegl] gegl:display: use a timeout instead of an idle for the SDL event pumping



commit cf24683f26b70ac4f2c3a79d3d370413303afbd2
Author: �yvind Kolås <pippin gimp org>
Date:   Fri Dec 17 23:18:38 2010 +0000

    gegl:display: use a timeout instead of an idle for the SDL event pumping

 operations/external/display.c |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/operations/external/display.c b/operations/external/display.c
index d796339..c73c457 100644
--- a/operations/external/display.c
+++ b/operations/external/display.c
@@ -89,7 +89,7 @@ process (GeglOperation       *operation,
 
   init_sdl ();
   if (!handle)
-    handle = g_idle_add (idle, NULL);
+    handle = g_timeout_add (500, idle, NULL);
 
   if (!o->screen ||
        o->width  != result->width ||
@@ -138,11 +138,11 @@ process (GeglOperation       *operation,
   gegl_buffer_get (source,
        1.0,
        NULL,
-       babl_format_new (babl_model ("R'G'B'A"),
+       babl_format_new (babl_model ("RGBA"),
                         babl_type ("u8"),
-                        babl_component ("B'"),
-                        babl_component ("G'"),
-                        babl_component ("R'"),
+                        babl_component ("B"),
+                        babl_component ("G"),
+                        babl_component ("R"),
                         babl_component ("A"),
                         NULL),
        ((SDL_Surface*)o->screen)->pixels, GEGL_AUTO_ROWSTRIDE);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]