]> git.ipfire.org Git - thirdparty/plymouth.git/commit
twp-step: Remove superflous is_hidden / is_stopped checks from on_draw
authorHans de Goede <hdegoede@redhat.com>
Sat, 28 Sep 2019 10:05:11 +0000 (12:05 +0200)
committerHans de Goede <hdegoede@redhat.com>
Mon, 30 Sep 2019 09:15:31 +0000 (11:15 +0200)
commit8f04867b745bd231ce67abc4e751c34e6446e109
tree8db1dbc2f7f95a05630d55a69ee35a28c6ad8653
parent48de9e64ee9b225da9eafa96aae79dd60907348f
twp-step: Remove superflous is_hidden / is_stopped checks from on_draw

Remove superflous is_hidden / is_stopped checks from our on_draw
handler. In all 3 cases the is_hidden / is_stopped check guards
a draw_area call, but the draw_area calls themselves contain the
same check, so it checking this in on_draw is not necessary.

Also note that we are already not doing such a check for e.g. the
progress_bar so lets be consistent and remove the check everywhere.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
src/plugins/splash/two-step/plugin.c