Merge pull request #4372 from TheUbuntuGuy/master

Fix random artifacting on nyanalyzer on startup
This commit is contained in:
David Sansome 2014-05-23 21:26:52 +10:00
commit 0e96eb7370
1 changed files with 1 additions and 1 deletions

View File

@ -40,7 +40,7 @@ NyanCatAnalyzer::NyanCatAnalyzer(QWidget* parent)
px_per_frame_(0),
x_offset_(0),
background_brush_(QColor(0x0f, 0x43, 0x73)) {
memset(history_, 0, arraysize(history_));
memset(history_, 0, arraysize(history_) * sizeof(*history_));
for (int i = 0; i < kRainbowBands; ++i) {
colors_[i] = QPen(QColor::fromHsv(i * 255 / kRainbowBands, 255, 255),