Mercurial > hg > orthanc-stone
changeset 1449:11141df26e0d loader-injection-feature
Warning fix
author | Benjamin Golinvaux <bgo@osimis.io> |
---|---|
date | Tue, 02 Jun 2020 16:43:21 +0200 |
parents | dad6a2fe6fc7 |
children | 2a5f0f771fbd |
files | Samples/Sdl/SdlHelpers.h |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/Samples/Sdl/SdlHelpers.h Tue Jun 02 13:16:40 2020 +0200 +++ b/Samples/Sdl/SdlHelpers.h Tue Jun 02 16:43:21 2020 +0200 @@ -94,9 +94,9 @@ } p.AddPosition(compositor.GetPixelCenterCoordinates(event.button.x, event.button.y)); - p.SetAltModifier(modifiers & KeyboardModifiers_Alt); - p.SetControlModifier(modifiers & KeyboardModifiers_Control); - p.SetShiftModifier(modifiers & KeyboardModifiers_Shift); + p.SetAltModifier( (modifiers & KeyboardModifiers_Alt) != 0); + p.SetControlModifier( (modifiers & KeyboardModifiers_Control) != 0); + p.SetShiftModifier( (modifiers & KeyboardModifiers_Shift) != 0); } static boost::shared_ptr<OrthancStone::SdlViewport> GetSdlViewportFromWindowId(