1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 14:18:12 +00:00

LibGUI: Use logical and instead of bitwise in Button paint call

This appears to have been a typo. While it does work it's probably
better to be more clear here.
This commit is contained in:
ForLoveOfCats 2022-02-01 17:45:31 -05:00 committed by Linus Groh
parent 20dbbdf90c
commit 1fd16232d3

View file

@ -57,7 +57,7 @@ void Button::paint_event(PaintEvent& event)
bool paint_pressed = is_being_pressed() || (m_menu && m_menu->is_visible());
Gfx::StylePainter::paint_button(painter, rect(), palette(), m_button_style, paint_pressed, is_hovered(), is_checked(), is_enabled(), is_focused(), is_default() & !another_button_has_focus());
Gfx::StylePainter::paint_button(painter, rect(), palette(), m_button_style, paint_pressed, is_hovered(), is_checked(), is_enabled(), is_focused(), is_default() && !another_button_has_focus());
if (text().is_empty() && !m_icon)
return;