skins2: fix buttons and checkbox artefacts with animated images
commit1c101b97678e5e7a34a062916b24fe0b9366a316
authorErwan Tulou <erwan10@videolan.org>
Wed, 3 Sep 2014 21:31:43 +0000 (3 23:31 +0200)
committerErwan Tulou <erwan10@videolan.org>
Thu, 4 Sep 2014 12:23:24 +0000 (4 14:23 +0200)
tree2e4ac0ca78ec5398dfa9514100ece601cc62f32b
parentada506316fb9e22ea989d5b18b0162d8c9032233
skins2: fix buttons and checkbox artefacts with animated images

If down or over images are missing, they default to the up image. Yet, in case
of animated images, the animation gets played leading to undesirable artefacts.

This patch adds a comparison operator for animated images and do not restart the
animation if they are alike.
modules/gui/skins2/controls/ctrl_button.cpp
modules/gui/skins2/controls/ctrl_checkbox.cpp
modules/gui/skins2/src/anim_bitmap.cpp
modules/gui/skins2/src/anim_bitmap.hpp