int number_of_bullets;
int max_number_of_visible_bullets;
+
+ uint32_t is_hidden : 1;
};
ply_entry_t *
entry->bullet_image = ply_image_new (image_path);
free (image_path);
+ entry->is_hidden = true;
+
return entry;
}
uint32_t *text_field_data, *bullet_data;
int i, number_of_visible_bullets;
+ if (entry->is_hidden)
+ return;
+
ply_frame_buffer_pause_updates (entry->frame_buffer);
text_field_data = ply_image_get_data (entry->text_field_image);
entry->area.x = x;
entry->area.y = y;
+ entry->is_hidden = false;
+
ply_entry_draw (entry);
}
entry->frame_buffer = NULL;
entry->window = NULL;
+ entry->loop = NULL;
+
+ entry->is_hidden = true;
+}
+
+bool
+ply_entry_is_hidden (ply_entry_t *entry)
+{
+ return entry->is_hidden;
}
long
long y);
void ply_entry_hide (ply_entry_t *entry);
void ply_entry_draw (ply_entry_t *entry);
+bool ply_entry_is_hidden (ply_entry_t *entry);
long ply_entry_get_width (ply_entry_t *entry);
long ply_entry_get_height (ply_entry_t *entry);
{
plugin->pending_password_answer = answer;
- stop_animation (plugin);
- show_password_entry (plugin);
+ if (ply_entry_is_hidden (plugin->entry))
+ {
+ stop_animation (plugin);
+ show_password_entry (plugin);
+ }
+ else
+ ply_entry_draw (plugin->entry);
}
ply_boot_splash_plugin_interface_t *