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:
parent
0d2c294fa1
commit
a54ffcd265
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user