keymap: fix value stored to 'flags' is never read
Fix 'flags' was not used in In KeyboardLayoutView::_DrawKeyButton(). Pointed by Clang Static Analyzer. Change-Id: Ic3b2da856ee410e908eaaf0c5c4b5b3753928c00 Reviewed-on: https://review.haiku-os.org/c/haiku/+/4079 Tested-by: Commit checker robot <[email protected]> Reviewed-by: Adrien Destugues <[email protected]>
This commit is contained in:
committed by
Adrien Destugues
parent
1b0f948ea2
commit
69cd1bde89
@@ -700,12 +700,11 @@ KeyboardLayoutView::_DrawKeyButton(BView* view, BRect& rect, BRect updateRect,
|
|||||||
rgb_color base, rgb_color background, bool pressed)
|
rgb_color base, rgb_color background, bool pressed)
|
||||||
{
|
{
|
||||||
uint32 flags = pressed ? BControlLook::B_ACTIVATED : 0;
|
uint32 flags = pressed ? BControlLook::B_ACTIVATED : 0;
|
||||||
flags |= BControlLook::B_FLAT;
|
|
||||||
|
|
||||||
be_control_look->DrawButtonFrame(view, rect, updateRect, 4.0f, base,
|
be_control_look->DrawButtonFrame(view, rect, updateRect, 4.0f, base,
|
||||||
background, pressed ? BControlLook::B_ACTIVATED : 0);
|
background, flags);
|
||||||
be_control_look->DrawButtonBackground(view, rect, updateRect, 4.0f,
|
be_control_look->DrawButtonBackground(view, rect, updateRect, 4.0f,
|
||||||
base, pressed ? BControlLook::B_ACTIVATED : 0);
|
base, flags);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user