mirror of
https://review.haiku-os.org/haiku
synced 2025-02-07 06:16:11 +01:00
interface: fix oversight in comparison
Pointed out by Jérome Duval in https://review.haiku-os.org/c/haiku/+/8428 Change-Id: Ibbd3660616939bbc49514778d494e8e64d8dbf9f Reviewed-on: https://review.haiku-os.org/c/haiku/+/8872 Haiku-Format: Haiku-format Bot <no-reply+haikuformatbot@haiku-os.org> Reviewed-by: waddlesplash <waddlesplash@gmail.com>
This commit is contained in:
parent
01164d98be
commit
c96e40d299
@ -1049,7 +1049,7 @@ BTextControl::_UpdateTextViewColors(bool enable)
|
||||
if (!enable) {
|
||||
textColor = disable_color(textColor, ViewColor());
|
||||
viewColor = disable_color(ViewColor(), viewColor);
|
||||
} else if (fLook & BControlLook::B_INVALID) {
|
||||
} else if ((fLook & BControlLook::B_INVALID) != 0) {
|
||||
hsl_color normalViewColor = hsl_color::from_rgb(viewColor);
|
||||
rgb_color failureColor = ui_color(B_FAILURE_COLOR);
|
||||
hsl_color newViewColor = hsl_color::from_rgb(failureColor);
|
||||
|
Loading…
x
Reference in New Issue
Block a user