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:
Pascal Abresch 2025-01-28 04:24:11 +01:00 committed by waddlesplash
parent 01164d98be
commit c96e40d299

View File

@ -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);