1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-07-03 00:46:55 +02:00

Force full redraw for sliders. This fixes backgroung glitches with SDL2.

(!) there should be better fix
This commit is contained in:
AlexVinS
2014-07-03 18:44:25 +04:00
parent ecc7b8e05a
commit f3067878dd
2 changed files with 13 additions and 1 deletions

View File

@ -854,6 +854,17 @@ void CSlider::showAll(SDL_Surface * to)
CIntObject::showAll(to);
}
void CSlider::show(SDL_Surface * to)
{
#ifdef VCMI_SDL1
CIntObject::show(to);
#else
CSDL_Ext::fillRect(to, &pos, 0);
CIntObject::showAll(to);
#endif // VCMI_SDL1
}
void CSlider::wheelScrolled(bool down, bool in)
{
moveTo(value + 3 * (down ? +scrollStep : -scrollStep));