Explorar el Código

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.
ForLoveOfCats hace 3 años
padre
commit
1fd16232d3
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      Userland/Libraries/LibGUI/Button.cpp

+ 1 - 1
Userland/Libraries/LibGUI/Button.cpp

@@ -57,7 +57,7 @@ void Button::paint_event(PaintEvent& event)
 
 
     bool paint_pressed = is_being_pressed() || (m_menu && m_menu->is_visible());
     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)
     if (text().is_empty() && !m_icon)
         return;
         return;