diff options
Diffstat (limited to 'src/render.c')
-rw-r--r-- | src/render.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/render.c b/src/render.c index 1439b08..214af8b 100644 --- a/src/render.c +++ b/src/render.c @@ -42,7 +42,6 @@ void draw_logo(saver_state_t *state) g_bytes_unref(bytes); if (error != NULL) { fprintf(stderr, "Error loading logo SVG\n"); - return; } } @@ -132,7 +131,13 @@ void draw_password_field(saver_state_t *state) // Draw cursor cairo_set_source_rgba(cr, 1.0, 1.0, 1.0, state->cursor_opacity); - cairo_rectangle(cr, field_x + cursor_offset_x, field_y, cursor_width, cursor_height); + if (state->cursor_animating) { + cairo_rectangle(cr, field_x + cursor_offset_x, field_y, cursor_width, cursor_height); + } else { + // Fill asterisks + cairo_rectangle(cr, field_x, field_y, cursor_offset_x, cursor_height); + } cairo_fill(cr); + } |