]> git.ipfire.org Git - thirdparty/plymouth.git/commitdiff
[x11] default renderer to inactive
authorScott James Remnant <scott@ubuntu.com>
Thu, 18 Mar 2010 05:04:33 +0000 (05:04 +0000)
committerScott James Remnant <scott@ubuntu.com>
Thu, 18 Mar 2010 20:01:31 +0000 (20:01 +0000)
Change the renderer so that it defaults to inactive until we
map to the device.

src/plugins/renderers/x11/plugin.c

index a280bc741558343792d59532fa6fa630e57b68df..0bf8ab285ef8bc3b343d9b244064e03147b00d5d 100644 (file)
@@ -85,7 +85,7 @@ struct _ply_renderer_backend
 
   ply_fd_watch_t *display_watch;
 
-  uint32_t is_inactive : 1;
+  uint32_t is_active : 1;
 };
 
 ply_renderer_plugin_interface_t *ply_renderer_backend_get_interface (void);
@@ -269,6 +269,9 @@ map_to_device (ply_renderer_backend_t *backend)
       ply_renderer_head_redraw (backend, head);
       node = next_node;
     }
+
+  backend->is_active = true;
+
   return true;
 }
 
@@ -301,13 +304,13 @@ unmap_from_device (ply_renderer_backend_t *backend)
 static void
 activate (ply_renderer_backend_t *backend)
 {
-  backend->is_inactive = false;
+  backend->is_active = true;
 }
 
 static void
 deactivate (ply_renderer_backend_t *backend)
 {
-  backend->is_inactive = true;
+  backend->is_active = false;
 }
 
 static void
@@ -341,7 +344,7 @@ flush_head (ply_renderer_backend_t *backend,
 
   assert (backend != NULL);
 
-  if (backend->is_inactive)
+  if (!backend->is_active)
     return;
 
   pixel_buffer = head->pixel_buffer;