Don't redraw decorator region if the highlight colour has not changed.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39700 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Clemens Zeidler 2010-12-02 00:58:39 +00:00
parent 0d2c294fa1
commit a54ffcd265

View File

@ -440,6 +440,8 @@ Decorator::SetRegionHighlight(Region region, uint8 highlight, BRegion* dirty)
if (index < 0 || index >= REGION_COUNT - 1) if (index < 0 || index >= REGION_COUNT - 1)
return false; return false;
if (fRegionHighlights[index] == highlight)
return true;
fRegionHighlights[index] = highlight; fRegionHighlights[index] = highlight;
if (dirty != NULL) if (dirty != NULL)