Explorar o código

Merge pull request #593 from dydzio0614/PerformanceTweak

Tweak statusbar options, fixes mouse stuttering
Alexander Shishkin %!s(int64=6) %!d(string=hai) anos
pai
achega
26e70a236e
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      client/widgets/TextControls.cpp

+ 2 - 0
client/widgets/TextControls.cpp

@@ -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()