1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-07-15 01:24:45 +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

@ -217,7 +217,8 @@ public:
void wheelScrolled(bool down, bool in);
void clickLeft(tribool down, bool previousState);
void mouseMoved (const SDL_MouseMotionEvent & sEvent);
void showAll(SDL_Surface * to);
void showAll(SDL_Surface * to);
void show(SDL_Surface * to) override;
CSlider(int x, int y, int totalw, std::function<void(int)> Moved, int Capacity, int Amount,
int Value=0, bool Horizontal=true, int style = 0); //style 0 - brown, 1 - blue