Fix first paint mute icon

Origin commit data
------------------
Commit: 46659ddaf0
Author: Michael Liebmann <tuxcode.bbg@gmail.com>
Date: 2016-04-24 (Sun, 24 Apr 2016)
This commit is contained in:
Michael Liebmann
2016-04-24 13:22:38 +02:00
parent 1486711d16
commit 52d3483e78

View File

@@ -2167,6 +2167,8 @@ bool CFrameBuffer::_checkFbArea(int _x, int _y, int _dx, int _dy, bool prev)
if (v_fbarea.empty())
return true;
static bool firstMutePaint = true;
for (unsigned int i = 0; i < v_fbarea.size(); i++) {
int ret = checkFbAreaElement(_x, _y, _dx, _dy, &v_fbarea[i]);
if (ret == FB_PAINTAREA_MATCH_OK) {
@@ -2176,10 +2178,14 @@ bool CFrameBuffer::_checkFbArea(int _x, int _y, int _dx, int _dy, bool prev)
break;
// waitForIdle();
fb_no_check = true;
if (prev)
if (prev) {
firstMutePaint = false;
CAudioMute::getInstance()->hide();
else
CAudioMute::getInstance()->paint();
}
else {
if (!firstMutePaint)
CAudioMute::getInstance()->paint();
}
fb_no_check = false;
break;
default: