]> git.ipfire.org Git - thirdparty/plymouth.git/commitdiff
[entry] Fix ask question entry text
authorCharlie Brej <cbrej@cs.man.ac.uk>
Sun, 18 Apr 2010 19:10:17 +0000 (20:10 +0100)
committerCharlie Brej <cbrej@cs.man.ac.uk>
Sun, 18 Apr 2010 19:10:17 +0000 (20:10 +0100)
The text was not being shown because show was not called. Also the default
colour is white which was not showing up on white background.

src/libply-splash-graphics/ply-entry.c

index 8022dcceb035a1ce8af41e7c199c837dd68c229b..4be0c0fe4988f04bfd280adaf67d177df1601f51 100644 (file)
@@ -94,6 +94,7 @@ ply_entry_new (const char *image_dir)
   entry->bullet_image = ply_image_new (image_path);
   free (image_path);
   entry->label = ply_label_new ();
+  ply_label_set_color (entry->label, 0, 0, 0, 1);
 
   entry->number_of_bullets = 0;
   entry->text = strdup("");
@@ -219,6 +220,11 @@ ply_entry_draw_area (ply_entry_t        *entry,
   else
     {
       ply_label_set_text (entry->label, entry->text);
+      ply_label_show (entry->label,
+                      NULL,
+                      entry->area.x,
+                      entry->area.y + entry->area.height / 2
+                       - ply_label_get_height (entry->label) / 2);
       ply_label_draw_area (entry->label, pixel_buffer,
                            entry->area.x, entry->area.y,
                            entry->area.width, entry->area.height);