mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-30 04:39:06 +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:
parent
20dbbdf90c
commit
1fd16232d3
Notes:
sideshowbarker
2024-07-17 17:59:07 +09:00
Author: https://github.com/ForLoveOfCats
Commit: 1fd16232d3
Pull-request: https://github.com/SerenityOS/serenity/pull/12250
Reviewed-by: https://github.com/awesomekling
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue