[haiku-commits] BRANCH looncraz-github.setviewuicolor [c03d9b817314] src/kits/interface

  • From: looncraz-github.setviewuicolor <community@xxxxxxxxxxxx>
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Tue, 27 Oct 2015 03:47:02 +0100 (CET)

added 1 changeset to branch 'refs/remotes/looncraz-github/setviewuicolor'
old head: 8a5592aa3083748ebafab2847babc47c786c57c7
new head: c03d9b8173144d972c35fe3e7afd9d8e94feed9a
overview: https://github.com/looncraz/haiku/compare/8a5592aa3083...c03d9b817314

----------------------------------------------------------------------------

c03d9b817314: Check for B_NO_COLOR

Failure to check for this resulted in the WonderBrush issue as the low color
was being crushed when SetViewColor was called. How this did not affect other
programs is beyond me... as is how I missed this :-/

[ looncraz <looncraz@xxxxxxxxxxxx> ]

----------------------------------------------------------------------------

Commit: c03d9b8173144d972c35fe3e7afd9d8e94feed9a
Author: looncraz <looncraz@xxxxxxxxxxxx>
Date: Tue Oct 27 02:31:13 2015 UTC

----------------------------------------------------------------------------

1 file changed, 2 insertions(+), 1 deletion(-)
src/kits/interface/View.cpp | 3 ++-

----------------------------------------------------------------------------

diff --git a/src/kits/interface/View.cpp b/src/kits/interface/View.cpp
index 0beb962..612bfce 100644
--- a/src/kits/interface/View.cpp
+++ b/src/kits/interface/View.cpp
@@ -2669,7 +2669,8 @@ BView::SetViewUIColor(color_which which, float tint)
fState->archiving_flags &= ~B_VIEW_WHICH_VIEW_COLOR_BIT;
}

- if ((fState->archiving_flags & B_VIEW_WHICH_LOW_COLOR_BIT) == 0)
+ if (which != B_NO_COLOR
+ && (fState->archiving_flags & B_VIEW_WHICH_LOW_COLOR_BIT) == 0)
SetLowUIColor(which, tint);
}



Other related posts:

  • » [haiku-commits] BRANCH looncraz-github.setviewuicolor [c03d9b817314] src/kits/interface - looncraz-github . setviewuicolor