From a54ffcd2657182c7fd2ce49bd011279b4da49e3b Mon Sep 17 00:00:00 2001 From: Clemens Zeidler Date: Thu, 2 Dec 2010 00:58:39 +0000 Subject: [PATCH] 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 --- src/servers/app/Decorator.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/servers/app/Decorator.cpp b/src/servers/app/Decorator.cpp index fd5000d415..92dbd6045f 100644 --- a/src/servers/app/Decorator.cpp +++ b/src/servers/app/Decorator.cpp @@ -440,6 +440,8 @@ Decorator::SetRegionHighlight(Region region, uint8 highlight, BRegion* dirty) if (index < 0 || index >= REGION_COUNT - 1) return false; + if (fRegionHighlights[index] == highlight) + return true; fRegionHighlights[index] = highlight; if (dirty != NULL)