1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-02-03 13:01:33 +02:00

Merge pull request #593 from dydzio0614/PerformanceTweak

Tweak statusbar options, fixes mouse stuttering
This commit is contained in:
Alexander Shishkin 2019-05-19 21:48:36 +03:00 committed by GitHub
commit 26e70a236e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -358,6 +358,7 @@ CGStatusBar::CGStatusBar(std::shared_ptr<CPicture> background_, EFonts Font, EAl
pos = background->pos;
getBorderSize();
textLock = false;
autoRedraw = false;
}
CGStatusBar::CGStatusBar(int x, int y, std::string name, int maxw)
@ -372,6 +373,7 @@ CGStatusBar::CGStatusBar(int x, int y, std::string name, int maxw)
background->srcRect = new Rect(0, 0, maxw, pos.h);
}
textLock = false;
autoRedraw = false;
}
CGStatusBar::~CGStatusBar()